Ticket #18 (closed Defect: Software changed)
Attributes on property elements are not preservered
| Reported by: | wsanchez@… | Owned by: | wsanchez@… |
|---|---|---|---|
| Priority: | 1: Blocker | Milestone: | CalendarServer-1.0 |
| Component: | Calendar Server | Severity: | Crash/data loss |
| Keywords: | Cc: |
Description (last modified by wsanchez@…) (diff)
2006/02/22 2:03 PM Cyrus Daboo: * SUMMARY If an attribute (e.g. xml:lang) is specified on a property by the client, the server MUST return those attributes when returning the property. As per 2518 section 12.13.2.
* STEPS TO REPRODUCE 1. Do a PROPPATCH:
PROPPATCH /cal/ HTTP/1.1 Host: localhost Content-Type: text/xml; charset="utf-8" Content-Length: 196 <?xml version="1.0" encoding="utf-8" ?> <D:propertyupdate xmlns:D="DAV:"> <D:set> <D:prop> <D:displayname xml:lang="en">English Text</D:displayname> </D:prop> </D:set> </D:propertyupdate>
2. Do a PROPFIND:
PROPFIND /cal/ HTTP/1.1 Host: localhost Content-Length: 124 Content-Type: text/xml; charset=utf-8 Depth: 0 <?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"> <D:prop> <D:displayname/> </D:prop> </D:propfind>
* RESULTS Note that the xml:lang attribute is not returned on the displayname property element.
* NOTES Obviously we need a way to preserve the XML element attributes in the xattrs database. One solution might be to store the entire property element in the xattr rather than just the value, but still index it by the property name.
Change History
Note: See
TracTickets for help on using
tickets.
