propfind_d0: Interpreting failure

worik worik at worik.org
Tue Sep 15 02:25:41 EDT 2015


Friends

I am having problems running litmus over a DAV: 1 server I am constructing.

tl;dr Is there any documentation anywhere of what I see in debug.log? As
far as I can tell it is saying that the XML I return is invalid.  I am
reasonably sure it is not invalid.


When I run litmus I get: "propfind_d0........... FAIL (No responses
returned)" as output.

In the debug.log I see (in part)

[<?xml version="1.0" encoding="utf-8"?>
<D:multistatus
xmlns:D="DAV:"><D:response><D:href>https://localhost/dav/litmus</D:href><D:propstat><D:status>404
Not Found</D:status><D:prop><foo
xmlns="http://example.com/neon/litmus/"/><bar
xmlns="http://example.com/neon/litmus/"/></D:prop></D:propstat><D:propstat><D:status>200
OK</D:status><D:prop><D:getcontentlength>0</D:getcontentlength><D:getlastmodified>Tue,
15 Sep 2015 06:00:45
GMT</D:getlastmodified><D:displayname/><D:resourcetype><D:collection/></D:resourcetype></D:prop></D:propstat></D:response></D:multistatus>
]
XML: Parsing 567 bytes.
XML: start-element (0, {DAV:, multistatus}) => 1
XML: start-element (1, {DAV:, response}) => 2
XML: start-element (2, {DAV:, href}) => 4
XML: char-data (4) returns 0
XML: end-element (4, {DAV:, href})
XML: start-element (2, {DAV:, propstat}) => 7
XML: start-element (7, {DAV:, status}) => 6
XML: char-data (6) returns 0
Status line: 404 Not Found
XML: end-element for 6 failed with -1.
XML: end-element (6, {DAV:, status})
XML: XML_Parse returned 1

It looks to me like the parser is not seeing the </D:status> end tag

I can parse the XML with XML::LibXML and pretty print it:

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
  <D:response>
    <D:href>https://localhost/dav/litmus</D:href>
    <D:propstat>
      <D:status>404 Not Found</D:status>
      <D:prop>
        <foo xmlns="http://example.com/neon/litmus/"/>
        <bar xmlns="http://example.com/neon/litmus/"/>
      </D:prop>
    </D:propstat>
    <D:propstat>
      <D:status>200 OK</D:status>
      <D:prop>
        <D:getcontentlength>0</D:getcontentlength>
        <D:getlastmodified>Tue, 15 Sep 2015 06:00:45 GMT</D:getlastmodified>
        <D:displayname/>
        <D:resourcetype>
          <D:collection/>
        </D:resourcetype>
      </D:prop>
    </D:propstat>
  </D:response>
</D:multistatus>



I cannot see anything wrong with the XML and my reading of the XML
specifications in RFC4918 suggests that it is all valid.

I expect I have gone wrong but I am not sure how to interpret the output
of litmus, and I am weary of barking up the wrong tree looking for the
answer.

Worik

-- 
Why is the legal status of chardonnay different to that of cannabis? 
                  root at worik.org 021-1680650, (03) 4821804
                          Aotearoa (New Zealand)
                             I voted for love




More information about the litmus mailing list