Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #315 (closed Defect: Software changed)

Opened 4 years ago

Last modified 8 months ago

principal-match REPORT vends two response XML elements instead of one

Reported by: wsanchez@… Owned by: sagen@…
Priority: 3: Important Milestone: CalendarServer-2.4
Component: Calendar Server Severity: Other
Keywords: Cc: kurt.leubner@…
Port:

Description

From Helge:

When requesting missing properties in a principal-match REPORT, iCal server returns two response XML elements with individual propstat's instead of one response element with two propstat's.

REPORT /calendars/users/nat/ 
Depth:0 
 
<?xml version="1.0" encoding="utf-8"?> 
<principal-match xmlns="DAV:" 
xmlns:I="urn:ietf:params:xml:ns:caldav" 
xmlns:C="urn:ietf:params:xml:ns:carddav" 
xmlns:G="http://groupdav.org/" 
xmlns:A="http://calendarserver.org/ns/" 
> 
<self/> 
<prop> 
<displayname/> 
<resourcetype/> 
... 
<A:first-name /> 
... 
---snap--- 
 
gives: 
---snip--- 
<?xml version='1.0' encoding='UTF-8'?> 
<multistatus xmlns='DAV:'> 
<response> 
<href>/principals/users/nat/</href> 
<propstat> 
<prop> 
<displayname>Nat!</displayname> 
<resourcetype> 
<collection/> 
<principal/> 
... 
</prop> 
<status>HTTP/1.1 200 OK</status> 
</propstat> 
</response> 
<response> 
<href>/principals/users/nat/</href> 
<propstat> 
<prop> 
<getctag xmlns='http://calendarserver.org/ns/'/> 
... 
</prop> 
<status>HTTP/1.1 404 Not Found</status> 
</propstat> 
</response> 
</multistatus> 

Change History

comment:1 Changed 4 years ago by wsanchez@…

Cyrus notes:

Looks like a generic problem with report_common.responseForHref where it separate outs the good/bad propstats into separate davxml.PropertyStatusResponse elements. The normal PROPFIND behavior aggregates the good/bad propstats into one davxml.PropertyStatusResponse element.

comment:2 Changed 4 years ago by helge@…

Yes, as discussed with Cyrus, the DAV:expand-property REPORT shows the same issue.

comment:3 Changed 4 years ago by sagen@…

  • Status changed from new to closed
  • Resolution set to Software changed

Fixed in calendar server trunk, rev 3578

comment:4 Changed 4 years ago by wsanchez@…

comment:5 Changed 8 months ago by kurt.leubner@…

  • Cc kurt.leubner@… added

Cc Me!

Note: See TracTickets for help on using tickets.