jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Lyaruu (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3278) Can not add xml files to a repository
Date Mon, 26 Mar 2012 11:30:28 GMT
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:">

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


View raw message