Details
-
Bug
-
Resolution: Done
-
Major
-
2.2.0.Final
-
None
-
Workaround Exists
-
Description
When creating new file in Modeshape repository (configured to use Filesystem connector) using a WebDav client, there is a RepositorySourceException thrown. I tried WebDav methods provided in Jackrabbit Webdav package and also WebDav methods from Sardine framework, both resulted in org.modeshape.graph.connector.RepositorySourceException: Attempt to set or update invalid property names: [jcr:encoding]
Here is a code snippet which uses PutMethod class from Jackrabbits's WebDav package:
try
{ DavMethodBase put = new PutMethod("http://127.0.0.1:8080/modeshape-webdav/file6.txt"); initClient().executeMethod(put); System.out .println(put.getStatusCode() + " " + put.getStatusText()); }catch (Exception e)
{ System.out.println(e.getCause()); e.printStackTrace(); }and here's a stacktrace SOA-P's console:
16:07:57,941 ERROR [STDERR] org.modeshape.graph.connector.RepositorySourceException: Attempt to set or update invalid property names: [jcr:encoding]
16:07:57,942 ERROR [STDERR] at org.modeshape.connector.filesystem.FileSystemSource$StandardPropertiesFactory.ensureValidProperties(FileSystemSource.java:698)
16:07:57,942 ERROR [STDERR] at org.modeshape.connector.filesystem.FileSystemSource$StandardPropertiesFactory.recordResourceProperties(FileSystemSource.java:669)
16:07:57,942 ERROR [STDERR] at org.modeshape.connector.filesystem.FileSystemWorkspace.putNode(FileSystemWorkspace.java:235)
16:07:57,942 ERROR [STDERR] at org.modeshape.graph.connector.base.PathWorkspace$PutCommand.apply(PathWorkspace.java:258)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.connector.base.PathWorkspace.commit(PathWorkspace.java:192)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.connector.base.PathTransaction$WorkspaceChanges.commit(PathTransaction.java:830)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.connector.base.PathTransaction.commit(PathTransaction.java:721)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.connector.base.Connection.execute(Connection.java:130)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:1129)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:193)
16:07:57,943 ERROR [STDERR] at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:183)
16:07:57,944 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
16:07:57,944 ERROR [STDERR] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
16:07:57,944 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
16:07:57,944 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
16:07:57,944 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
Attachments
Issue Links
- relates to
-
MODE-747 FileSystem connector should support additional properties on nt:file and nt:folder
- Closed