[Tickets #13822] Re: Shared calendar makes CalDAV fail with 500

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Feb 4 09:17:42 UTC 2016


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/13822
------------------------------------------------------------------------------
  Ticket             | 13822
  Updated By         | skhorde at smail.inf.fh-bonn-rhein-sieg.de
  Summary            | Shared calendar makes CalDAV fail with 500
  Queue              | Synchronization
  Version            | FRAMEWORK_5_2
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
+New Attachment     | shared-cal-permission.jpg
------------------------------------------------------------------------------


skhorde at smail.inf.fh-bonn-rhein-sieg.de (2016-02-04 09:17) wrote:

Let me restart.

I create with user dvtes1 a new calendar and share it like the  
attachement shows.

This calendar shows up for user dvtest2 in the GUI and in CalDAV I get  
this response for querying calendars:

     <d:response>
          
<d:href>/horde/rpc.php/calendars/dvtest2/calendar~c6rKd7q_99wt7vMg5tAKwt3/</d:href>
         <d:propstat>
             <d:prop>
                 <d:current-user-privilege-set>
                     <d:privilege xmlns:d="DAV:">
                         <d:read-free-busy  
xmlns:d="urn:ietf:params:xml:ns:caldav"/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:write/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:write-acl/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:write-properties/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:write-content/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:bind/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:unbind/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:unlock/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:read/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:read-acl/>
                     </d:privilege>
                     <d:privilege xmlns:d="DAV:">
                         <d:read-current-user-privilege-set/>
                     </d:privilege>
                 </d:current-user-privilege-set>
                 <d:displayname>dv1/shared  
[dvtest1]</d:displayname><x5:calendar-color  
xmlns:x5="http://apple.com/ns/ical/">#5c31dfff</x5:calendar-color>
                 <cal:supported-calendar-component-set>
                     <cal:comp name="VEVENT"/>
                 </cal:supported-calendar-component-set>
                 <d:resourcetype>
                     <d:collection/><cal:calendar/>
                 </d:resourcetype>
             </d:prop>
             <d:status>HTTP/1.1 200 OK</d:status>
         </d:propstat>
     </d:response>

When I now request some data from this calendar with:

REPORT  
/horde/rpc.php/calendars/dvtest2/calendar~c6rKd7q_99wt7vMg5tAKwt3/  
HTTP/1.1
Host: 10.***
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML,  
like Gecko) akonadi_davgroupware_resource_62/4.14.2 Safari/534.34
Pragma: no-cache
Cache-control: no-cache
Accept: text/html, text/*;q=0.9, image/jpeg;q=0.9, image/png;q=0.9,  
image/*;q=0.9, */*;q=0.8
Accept-Charset: utf-8,*;q=0.5
Accept-Language: en-US,en;q=0.9
Content-Type: text/xml
Depth: 2
Authorization: ****
Content-Length: 825

<?xml version="1.0" encoding="utf-8"?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<D:getetag/>
<C:calendar-data>
  <C:comp name="VCALENDAR">
    <C:prop name="VERSION"/>
    <C:comp name="VEVENT">
      <C:prop name="SUMMARY"/>
      <C:prop name="UID"/>
      <C:prop name="DTSTART"/>
      <C:prop name="DTEND"/>
      <C:prop name="DURATION"/>
      <C:prop name="RRULE"/>
      <C:prop name="RDATE"/>
      <C:prop name="EXRULE"/>
      <C:prop name="EXDATE"/>
      <C:prop name="RECURRENCE-ID"/>
    </C:comp>
    <C:comp name="VTIMEZONE"/>
  </C:comp>
</C:calendar-data>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
  <C:comp-filter name="VEVENT">
    <C:time-range start="20140104T000000Z"
                  end="20160105T000000Z"/>
  </C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>


Horde responses with:

HTTP/1.1 500 Internal Server Error
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
     <s:exception>Sabre\DAV\Exception</s:exception>
     <s:message>Calendar does not exist or no permission to edit</s:message>
     <s:sabredav-version>1.8.10</s:sabredav-version>
</d:error>

If I instead use
REPORT calendar_i_have_ReadOnly_access_to ?
?

I get a multi status OK and VEVENTs.



skhorde at smail.inf.fh-bonn-rhein-sieg.de (2016-02-04 09:17) uploaded:  
shared-cal-permission.jpg

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=shared-cal-permission.jpg&ticket=13822&fn=%2Fshared-cal-permission.jpg





More information about the bugs mailing list