Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #18 (closed Defect: Software changed)

Opened 4 years ago

Last modified 3 years ago

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

Changed 4 years ago by wsanchez@…

  • description modified (diff)

Changed 4 years ago by wsanchez@…

Marked as P1 because if this changes how we manage the xattr store, we want this fixed before people deploy it widely.

Changed 4 years ago by wsanchez@…

  • status changed from new to assigned

Changed 4 years ago by cdaboo@…

  • status changed from assigned to closed
  • resolution set to fixed

Fixed r1064. Now unrecognized attributes are kept rather than being ignored, though a log message is still produced.

Changed 3 years ago by wsanchez@…

  • milestone changed from Preview 1 to Version One

Milestone Preview 1 deleted

Note: See TracTickets for help on using tickets.