apple / ccs-caldavtester

CalDAV/CardDAV Testing Framework used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
57 stars 36 forks source link

better parsing of returned properties would help #6

Open macosforgebot opened 14 years ago

macosforgebot commented 14 years ago

douglm@… originally submitted this as ticket:371


Tests fail with messages like:

Failed Verifier: propfindItems
        Items not returned in report (OK) for /ucaldav/user/user01/Inbox/: ('urn:ietf:params:xml:ns:caldavschedule-default-calendar-URL', '<href xmlns="DAV:">/ucaldav/user/user01/calendar</href>')
        Unexpected items returned in report (OK) for /ucaldav/user/user01/Inbox/: (u'urn:ietf:params:xml:ns:caldavschedule-default-calendar-URL', u'<href>/ucaldav/user/user01/calendar/</href>')

because of unexpected formats to the response, e.g.

<?xml version="1.0" encoding="UTF-8" ?>

<multistatus xmlns="DAV:" xmlns:ns1="urn:ietf:params:xml:ns:caldav" xmlns:ns2="http://www.w3.org/2002/12/cal/ical#">
  <response>
    <href>/ucaldav/user/user01/Inbox/</href>
    <propstat>
      <prop>
        <ns1:schedule-default-calendar-URL>
          <href>/ucaldav/user/user01/calendar/</href>
        </ns1:schedule-default-calendar-URL>
      </prop>
      <status>HTTP/1.1 200 ok</status>
    </propstat>
  </response>
</multistatus>
macosforgebot commented 14 years ago

douglm@… originally submitted this as comment:1:⁠ticket:371


Alternatively using propfindValues as the verifier might be enough. In CalDAV/implicitdefaultcalendar.xml, suite 1, test 1 I changed

                   <callback>propfindItems</callback>
                    <arg>
                        <name>okprops</name>
                        <value>urn:ietf:params:xml:ns:caldavschedule-default-calendar-URL$&lt;href xmlns="DAV:"&gt;$calendarpath1:&lt;/href&gt;</value>
                    </arg>

to

                   <callback>propfindValues</callback>
                    <arg>
                        <name>okprops</name>
                        <value><![CDATA[schedule-default-calendar-URL.*<href.*]]>$calendarpath1:</value>
                    </arg>
macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:371

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:371

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:10:⁠ticket:371