You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2007/06/18 18:06:27 UTC

[jira] Created: (JCR-973) XML import using MacOS X WebDAV client does not work

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.


[jira] Commented: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505859 ] 

Bertrand Delacretaz commented on JCR-973:
-----------------------------------------

Note that command-line copies (as opposed to via the Finder GUI) behave differently:

  cp somefile.xml /Volumes/default/somewhere-in-the-jcr-tree

works for me.

I haven't precisely checked the differences at the protocol level, but it's useful as a workaround for Finder addicts ;-)

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


[jira] Resolved: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-973.
------------------------

    Resolution: Fixed

fmodified:
http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/io/ImportContextImpl.java
rev. 549796  


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


[jira] Commented: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509614 ] 

Jukka Zitting commented on JCR-973:
-----------------------------------

Merged to the 1.3 branch in revision 552540.

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


[jira] Resolved: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra resolved JCR-973.
----------------------------------

    Resolution: Fixed

Committed revision 548395.

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


[jira] Reopened: (JCR-973) XML import using MacOS X WebDAV client does not work

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela reopened JCR-973:
------------------------


the fix (adding check for ImportContext.getContentLength()) introduced a minor inconsistency that didn't have
an effect before:

The ImportContextImpl retrieves the content length from an InputContext which is passed with one constructor
but missing with the second one. Any usage of the latter constructor has the effect, that the XmlHandler will be able to import.

In order to fix this, the ImportContextImpl  should try to retrieve the content length even if no InputContext is present.

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