You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2008/01/24 11:31:35 UTC

[jira] Closed: (JCR-1340) MultiStatusResponse property contains white space elements

     [ https://issues.apache.org/jira/browse/JCR-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke closed JCR-1340.
-------------------------------

    Resolution: Invalid
      Assignee: Julian Reschke

Whitespace in WebDAV XML payloads is totally allowed; just fix your code to ignore text nodes that contain only whitespace.

> MultiStatusResponse property contains white space elements
> ----------------------------------------------------------
>
>                 Key: JCR-1340
>                 URL: https://issues.apache.org/jira/browse/JCR-1340
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>    Affects Versions: 1.4
>         Environment: Win32, java 1.6 , xerces2.8.1 
>            Reporter: Jan Peter Stotz
>            Assignee: Julian Reschke
>            Priority: Minor
>
> I am using the webdav library for building a WebDav client.
> When I execute a PropFindMethod and then iterate through the returned MultiStatusResponses and their properties I always get a strange result for the resourcetype property: Besides the real value it contains two "white space" elements.
> Example of such a property value:
> {DAV:}resourcetype = [[#text: 
>           ], [D:collection: null], [#text: 
>         ]]
> From the original XML response:
> "        <ns0:resourcetype>[\n]"
> "          <D:collection/>[\n]"
> "        </ns0:resourcetype>[\n]"
> From my interpretation of XML the two white space elements should not be elements in the resourcetype list.
> The reason for this error is probably that XML document builder uses setIgnoringElementContentWhitespace(true) but this option will be ignored as long as validation has not been enabled (which requires to specify an DTD or XML Schema via DOCTYPE or the DocumentBuilder itself).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.