jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-3278) Can not add xml files to a repository
Date Tue, 27 Mar 2012 14:44:26 GMT

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

Alexander Klimetschek resolved JCR-3278.
----------------------------------------

    Resolution: Invalid

The webdav handler is configurable and treats xml files separately by importing them as jcr
structures by default.

See for example:
http://markmail.org/message/hctkq6looial7xzr
http://markmail.org/message/pgdgubmgawo6vjdg
http://markmail.org/message/rg4im42n3h53lt7i
                
> Can not add xml files to a repository
> -------------------------------------
>
>                 Key: JCR-3278
>                 URL: https://issues.apache.org/jira/browse/JCR-3278
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.4, 2.6
>         Environment: Mac OSX 10.7.3, Java 6
>            Reporter: Frank Lyaruu
>
> I have problems adding xml files to a jackrabbit repository. I tried both the standalone
distribution and the web application.
> This is what I did:
> - I start the standalone jackrabbit:
> java -jar jackrabbit-standalone-2.6-SNAPSHOT.jar
> -I connect to the repository in the MacOS Finder using WebDav
> (Cmd-K -> http://localhost:8080/repository/default/)
> Now I can copy files into the repository, this works fine.
> I tried all kind of files, images, videos, pdf, it all works EXCEPT xml files.
> When I add an xml file (I don't think it matters what kind) a small file appears with
size 179 bytes, containing:
> <?xml version="1.0" encoding="utf-8"?>
> <D:propfind xmlns:D="DAV:">
> <D:prop>
> <D:getlastmodified/>
> <D:getcontentlength/>
> <D:creationdate/>
> <D:resourcetype/>
> </D:prop>
> </D:propfind>
> In the log the following line appears:
> 2012-03-26 13:19:11.987 ERROR [1008915893@qtp-275558166-3] DavResourceImpl.java:537 Error
while importing resource: java.io.IOException: XML parse error
> - There is no xml error, all xml files I tried behave like this.
> - Even if there was, that should not prevent jackrabbit from storing the file (right?)
> In the meantime, how can I configure jackrabbit to treat xml files as regular text files
so I can move on with my project?
> thanks, Frank

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message