Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1907

Removing federated-directory results in NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Fedora 4.4.0
    • Fix Version/s: None
    • Component/s: f4-core
    • Labels:
      None

      Description

      Once fedora is started with federation configured:

      "federated-directory" : {
                  "classname" : "org.fcrepo.connector.file.FedoraFileSystemConnector",
                  "directoryPath" : "/mnt/ingested",
                  "projections" : [ "default:/federated => /" ],
                  "contentBasedSha1" : "true",
                  "readonly" : false,
                  "extraPropertiesStorage" : "none",
                  "cacheTtlSeconds" : 5
              }
      

      Then once nodes under the federated node were visited via the browser and then fedora is restarted without the federation configured.

      Then visiting: http://localhost:8983/fedora/rest/federated/ results in a Java NullPointerExeption ("java.lang.NullPointerException at org.modeshape.jcr.JcrSession.node...") as opposed to a 404 not found.

      Visiting any node below the federated node(http://localhost:8983/fedora/rest/federated/subfolder) results in a similar NullPointerException (java.lang.NullPointerException at org.modeshape.jcr.JcrSession.cachedNode...)* I'm not sure if this is simply because the ".../federated/..." node isn't available or if fedora kept some extra reference to the subfolder node around too.

      *see attached file(s) for full trace
      See: https://github.com/fcrepo4/fcrepo4/issues/980

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ajs6f@virginia.edu A. Soroka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: