Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better parsing of returned properties would help #6

Open
macosforgebot opened this issue Mar 29, 2010 · 4 comments
Open

better parsing of returned properties would help #6

macosforgebot opened this issue Mar 29, 2010 · 4 comments
Assignees
Milestone

Comments

@macosforgebot
Copy link

@macosforgebot macosforgebot commented Mar 29, 2010

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
Copy link
Author

@macosforgebot macosforgebot commented Mar 29, 2010

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
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

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

  • Radar deleted
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

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

  • Priority changed from 5: Not set to 3: Important
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Apr 10, 2014

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

  • Milestone set to Sooner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.