Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 4.7.4, 4.11.1
    • Fix Version/s: None
    • Component/s: Import/export
    • Labels:
      None

      Description

      For system level
      Steps:
      1. Mark one of the repositories on the source artifactory as blacked out.
      2. Perform full system export.
      3. Perform full system import on the destination artifactory.
      Result in case of the blacked out artifactory
      No content or metadata will be imported as the blacked out flag restrict deployment.
      path will be created but the artifact itself will not be deployed with the following error:

      2016-08-15 18:05:11,094 [art-exec-4] [ERROR] (o.a.r.d.i.DbRepoImportHandler:353) - Import error: from: /Users/aviz/Desktop/artifactory-pro-4.7.4/data/tmp/artifactory-uploads/20160815.165811.zip_extract/repositories/libs-release-local/artifactory-java-client-api/artifactory-java-client-api/2.0.0/artifactory-java-client-api-2.0.0.pom to libs-release-local:artifactory-java-client-api/artifactory-java-client-api/2.0.0/artifactory-java-client-api-2.0.0.pom reason: Artifact rejected: The repository 'libs-release-local' is blacked out and cannot serve artifact 'libs-release-local:artifactory-java-client-api/artifactory-java-client-api/2.0.0/artifactory-java-client-api-2.0.0.pom'.
      

      Check screenshotA for the same

      Expected that the content and metadata will be brought regardless of the blacked out flag.

      For repository level
      Steps:
      1. Mark one of the repositories on the source artifactory as blacked out.
      2. Perform repository export.
      3. Perform full repository import on the destination artifactory.
      In this case, configuration of the repository itself is not transferred from source to destination (meaning, tough the source repository is blacked out the destination will not be blacked out as well as a result of the import process).

      In this case, content and metadata will be imported to the destination repository but the following error will be presented on the UI (screenshotB) which might confuse users.
      There is a similar error on the artifactory.log as well:

      2016-08-15 18:42:46,696 [art-exec-1] [ERROR] (o.a.r.d.i.DbRepoImportHandler:348) - Import error: from: /Users/aviz/Desktop/export263/repositories/avi-release-local/avi/jfrog/main.java.Knight/2.3.8/main.java.Knight-2.3.8.pom to avi-release-local:avi-release-local/avi/jfrog/main.java.Knight/2.3.8/main.java.Knight-2.3.8.pom reason: Could not import file '/Users/aviz/Desktop/export263/repositories/avi-release-local/avi/jfrog/main.java.Knight/2.3.8/main.java.Knight-2.3.8.pom into avi-release-local:avi-release-local/avi/jfrog/main.java.Knight/2.3.8/main.java.Knight-2.3.8.pom.
      

      We shouldn't present such errors in this case.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aviz Avi Zaig (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: