[
https://issues.apache.org/jira/browse/JCR-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595748#action_12595748
]
Julio Castillo commented on JCR-1571:
-------------------------------------
Angela,
I updated my entire sandbox tree, and tried to rebuild
jackrabbit-spi-spi2dav-1.5-SNAPSHOT.jar file but the build failed this time
around (had worked for me all the time before):
c:\svn\jackrabbit\sandbox\spi> mvn install
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\svn\jackrabbit\sandbox\spi\spi2dav\src\main\java\org\apache\jackrabbit\sp
i2dav\RepositoryServiceImpl.java:[190,7]
org.apache.jackrabbit.spi2dav.RepositoryServiceImpl is not abstract and does
not override abstract method
exists(org.apache.jackrabbit.spi.SessionInfo,org.apache.jackrabbit.spi.ItemI
d) in org.apache.jackrabbit.spi.RepositoryService
Angela, I suppose this is the tree you wanted me to test (I did see a few
changes coming in on the main trunk, but I haven't been building anything on
the main trunk, I just pick up the latest jar files released).
Let me know.
Thanks
** julio
> DavMethodBase#getResponseException fails if the body is not (valid) XML
> -----------------------------------------------------------------------
>
> Key: JCR-1571
> URL: https://issues.apache.org/jira/browse/JCR-1571
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-webdav
> Environment: JDK 1.6; Tomcat 6; Windows 2003
> Reporter: Julio Castillo
> Assignee: angela
> Attachments: HasNodeTest.java, JCR-1571.diff, trace_JCR-1571.txt
>
>
> I have a set up that uses the JCR Webdav Server from a custom remote client.
> I've noticed one thing, anytime I request a node that doesn't exist the error
> that comes back from the server is as follows:
> [Fatal Error] :1:941: The element type "HR" must be terminated by the
> matching end-tag "</HR>".
> javax.jcr.RepositoryException: The element type "HR" must be terminated by
> the matching end-tag "</HR>".: The element type "HR" must be terminated by
> the matching end-tag "</HR>".
> Doesn't really make sense, but that is OK, I can handle that.
> My problem:
> I have a partially populated repository that at the root has a few nodes like
> /edu/....
> /com/ibm/..
> So, I want to create a few nodes of type nt:folder under
> com/myCompany/folder1
> I have no problem creating them, but since "com" already exists I end up with
> com[2]/myCompany/folder1.
> So, I went ahead and used the parentNode.hasNode("folderName") method.
> This method returns true for the "com" portion, but when I test for the
> "myCompany" folder which should return false I get the error response shown
> above from the server.
> The webdav request looks as follows:
> PROPFIND /jackrabbit/server/default/jcr%3aroot/com/myCompany
> The snippet of code looks as follows:
> private Node createFolders (Session session, Node parentNode, List <String>
> folders)
> throws RepositoryException {
> Node folderNode = null;
> for (String folder : folders) {
> if (parentNode.hasNode(folder))
> folderNode = parentNode.getNode(folder);
> else
> folderNode = parentNode.addNode(folder, "nt:folder");
> parentNode = folderNode;
> }
> session.save();
> return (folderNode);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.