Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-11882

Prune Unreferenced Data will fail silently due to an NPE if there's a file in the root dir of one of the binary providers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.8.0, 4.9.0
    • Fix Version/s: 4.10.0
    • Component/s: Artifact Storage
    • Labels:
      None

      Description

      To reproduce:
      1.Create a file inside $ARTIFACTORY_HOME/filestore
      2.Execute the prune unreferenced data job
      3.Observe the catalina.out, there will be a NPE that will cause the thread that streams that file lists of the sub-dirs in the filestore to terminate.

      Exception in thread "Thread-8" java.lang.NullPointerException
      at org.jfrog.storage.binstore.common.BinaryProviderManagerImpl$FileListCollector.collect(BinaryProviderManagerImpl.java:296)
      at org.jfrog.storage.binstore.providers.base.BinaryProviderBase.collect(BinaryProviderBase.java:88)
      at org.jfrog.storage.binstore.common.BinaryProviderManagerImpl.lambda$0(BinaryProviderManagerImpl.java:162)
      at org.jfrog.storage.binstore.common.BinaryProviderManagerImpl$$Lambda$85/397201277.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Assignee:
              uriahl Uriah Levy
              Reporter:
              uriahl Uriah Levy
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: