Closed Bug 355813 Opened 19 years ago Closed 19 years ago

nsIWebDAVService.getResourceProperties is broken

Categories

(Calendar :: Provider: ICS/WebDAV, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: browning, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

nsIWebDAVService.getResourceProperties fails to return requested properties. This is actually rather difficult to demonstrate with current Sunbird/Lightning code since getResourceProperties is hardly used at all; will post testcase. Since no one has noticed this for months it's not a show-stopper for 0.3, but getResourceProperties will be necessary for things like CalDAV etags, detection of remote calendar types and principals, etc, in future releases.
This is not a proposed patch, just an attempt to demonstrate the problem with getResourceProperties. It causes the ICS provider to attempt to collect, after PUT, an item's etag using getResourceProperties, even on trunk, and to dump() a string when entering onOperationDetail. Apply the patch, PUT an item to an ICS calendar on a WebDAV server, and note that no dump() occurs. Thrilling, I know. nsOperationStreamListener is failing to parse the 207, and thus not calling onOperationDetail.
Attached patch use GetElementsByTagNameNS (obsolete) — Splinter Review
Same problem, same solution as bug 337790
Attachment #241522 - Flags: second-review?(mvl)
Attachment #241522 - Flags: first-review?(cmtalbert)
Comment on attachment 241522 [details] [diff] [review] use GetElementsByTagNameNS Sorry it took so long to get to this. It slipped past in the bugmail. This patch looks good. My only nit is that there is an extra space after ("DAV:"), r+ with that nit
Attachment #241522 - Flags: first-review?(cmtalbert) → first-review+
Attached patch address r1 nitSplinter Review
de-nitted
Attachment #241522 - Attachment is obsolete: true
Attachment #243104 - Flags: second-review?(mvl)
Attachment #241522 - Flags: second-review?(mvl)
Comment on attachment 243104 [details] [diff] [review] address r1 nit r=mvl
Attachment #243104 - Flags: second-review?(mvl) → second-review+
Patch checked in on MOZILLA_1_8_BRANCH and trunk. -> FIXED
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: