Closed Bug 263298 Opened 20 years ago Closed 20 years ago

On subscription to remote calendar via WebDAV, events are duplicated in Sunbird 0.2a

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: achton, Assigned: mostafah)

References

()

Details

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20041001 Mozilla Sunbird/0.2a

When you start a new calendar, create events, publish them to a remote calendar
via WebDAV, and then immediately subscribe to the remote calendar, some or all
events are duplicated in your calendar.

Reproducible: Always
Steps to Reproduce:
1. Start with an empty WebDAV dir and empty /Profiles/xx.default/Calendar/ dir.
2. Launch Sunbird, create a couple of events, select them all and publish via WebDAV
3. Then subscribe to the remote calendar

Actual Results:  
If I selected and published all events at once, all events were duplicated upon
subscribing to the remote calendar. If I had published them one by one, and then
subscribed, only the last event was duplicated.

Expected Results:  
No duplicate events should have occurred.

Running WebDAV on Apache 1.3.31, Debian GNU/Linux "Sarge" with the following config:

DAVLockDB /var/lib/apache/DAVLock

<Location /calendar/>
  DAV On

  Options FollowSymLinks
  AllowOverride None
  Order Deny,Allow
  Deny from all
  # these IP's dont need a UNIX account, and don't need to enter passwords
  Allow from 127. 10.0. 
  AuthType Basic
  AuthName "WebDAV"
  Require user achton
  Satisfy any
</Location>
this is expected behaviour.
When you start sunbird, you create a local calendar file. You add evens into
that file.
Then you publish (copy) the event to a file on your webdav server.
Then you subscribe to that file. You see the events in it.
But you still have the events in your local file. So, you see the events twice.
You can remove the local file now from your list of calendars, to get rid of the
extra events.
In that case this behaviour should:
a) be apparent from the way you subscribe to remote calendars
b) allow for the local (or remote) calendar to be deleted from the UI
(In reply to comment #6)
> a) be apparent from the way you subscribe to remote calendars
I don't see how. How does calendar know the file you subscribe to is special, in
that it has the events you already have in your local calendar. Sure, it could
compare, but that would be sloooooow.

> b) allow for the local (or remote) calendar to be deleted from the UI
You can do that. Go to the calendars tab, right click, remove.
(In reply to comment #7)
> I don't see how. How does calendar know the file you subscribe to is special, in
> that it has the events you already have in your local calendar. Sure, it could
> compare, but that would be sloooooow.
Ok - I see your point. I had overlooked the calendars tab, which kind of relates
to this. I think it should be noted in this tab which calendars are remote, and
which are local. My point was that the behaviour of the calendar wasn't
intuitive, which I still don't think it is. However, I don't have a viable
alternate solution atm. But a small icon on the calendars tab, noting if a
calendar is remotely synchronized (and published?) would be nice, and this is
were it would be logical to put it.
 
> > b) allow for the local (or remote) calendar to be deleted from the UI
> You can do that. Go to the calendars tab, right click, remove.
Yeah, or uncheck, I see. Thanks, I hadn't seen the tab at all.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: