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
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.