Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2514

The FileSystem connector should allow preconfigured projections which don't match a filename filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.5.0.Final
    • 4.4.0.Final
    • Federation
    • 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)
      

              hchiorean Horia Chiorean (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: