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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.4.0.Final
    • Fix Version/s: 4.5.0.Final
    • Component/s: Federation
    • Labels:
      None

      Description

      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                hchiorean Horia Chiorean
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: