-
Bug
-
Resolution: Done
-
Major
-
4.4.0.Final
-
None
When configuring a FS connector with a filter and preconfigured projection which doesn't match the file filter:
"json-filter" : { "classname" : "filesystem", "directoryPath" : "target/federation/files-json-filter", "projections" : [ "default:/json_filter => /" ], "enableEvents" : true, "cacheTtlSeconds" : 0, "inclusionPattern" : ".+[.]json$" }
the connector doesn't consider the preconfigured projection, failing with error messages like:
java.lang.AssertionError: Found a child reference in / to a non-existant child {}json_filter at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:629) at org.modeshape.jcr.JcrSession.node(JcrSession.java:658) at org.modeshape.jcr.JcrSession.node(JcrSession.java:677) at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:861) at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:844) at org.modeshape.jcr.AbstractJcrRepositoryTest.assertNode(AbstractJcrRepositoryTest.java:119)