[ 
https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505865
 ] 

Tobias Bocanegra commented on JCR-973:
--------------------------------------

i changed the following:
- the xmlhandler does only accept content that have a length > 0. this causes 
it to ignore the 1st empty put and let the default handler create the file.
- for the subsequent put with the content, the xml import would fail, since the 
jcr:content is already created as nt:resource. therefor the improved handler 
will replace the node if it is not compatible with the desired content node 
type.

now does the xml import with mac client work. the dot-underscore files log an 
error, since the xml handler cannot cope with binary data, but are nevertheless 
created later by the default handler.

> XML import using MacOS X WebDAV client does not work
> ----------------------------------------------------
>
>                 Key: JCR-973
>                 URL: https://issues.apache.org/jira/browse/JCR-973
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.3
>         Environment: MacOSX 10.4
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>             Fix For: 1.3.1
>
>
> when trying to import a xml file via a webdav mount this does not work.
> this is mainly because the client first tries to create a 0-sized file, which 
> fails with the xml importer. after the file is created, it will lock it and 
> put the xml body. a second problem might be the "dot-underscore" files mac 
> tries to create. 

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

Reply via email to