-
Bug
-
Resolution: Done
-
Critical
-
3.1.0.Final
-
None
UPDATE: I've changed the title to reflect the actual problem. Creating a node within a projection causes the node identifier to be a generated UUID. In this case, the file system connector is not capable of handling such nodes. IMO, the generation of the node key should be delegated to the DocumentStore (though this is a relatively big change).
Here is Ivan's original description:
I went to modeshape-examples/modeshape-filesystem-store-example and configured example with federation and here is how https://github.com/vasilievip/modeshape-examples/tree/federation2
When I run main method - I see issue #1 which is configuration parsing and known issue: see MODE-1765
javax.jcr.RepositoryException: Error while starting 'FederatedRepository' repository: No match found at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:613) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:580) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:149) at org.modeshape.example.filesystem.ModeShapeExample.main(ModeShapeExample.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Matcher.java:485) at org.modeshape.jcr.RepositoryConfiguration$Federation$ProjectionConfiguration.<init>(RepositoryConfiguration.java:2004) at org.modeshape.jcr.RepositoryConfiguration$Federation.getProjections(RepositoryConfiguration.java:1969) at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1053) at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:966) at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:354) at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:611) ... 8 more
When I run unit test - I see issue #2 which is UUID in filestore and subject for this bug.