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

Repository import of zip file with pom files with direct AWS s3 template will fail the import

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.6.3
    • Fix Version/s: 7.7.3
    • Component/s: Import/export
    • Labels:
      None
    • Severity:
      Medium

      Description

      Workarounds:

      1. Use eventual-s3
      2. Use repository replication or disable S3 direct

      Steps to reproduce:

      1. Export a valid pom file (along with the GAVC coordinates) and have it in a zip archive - artifactory style.
      2. Config Artifactory's binarystore.xml with:

      <chain template="s3-storage-v3-direct"/>

      3. Try to import it using the zip repository import to a maven repo and witness the failure in the UI like so:

      Import error: from: /Users/andreik/JFrog/Artifactory/SourceCode/artifactory/devenv/.artifactory/var/data/artifactory/tmp/artifactory-uploads/b2bb9f7c-378f-4b84-b2b1-4987ddb83029_extract/edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom to libs-release-local:edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom reason: Could not import file '/Users/andreik/JFrog/Artifactory/SourceCode/artiTest/artifactory/devenv/.artifactory/var/data/artifactory/tmp/artifactory-uploads/b2bb9f7c-378f-4b84-b2b1-4987ddb83029_extract/edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom into libs-release-local:edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom.
      

      and also in the log:

      2020-07-13T14:47:57.770Z [jfrt ] [ERROR] [edce891cbb1daa1a] [.r.d.i.DbRepoImportHandler:376] [art-import-1        ] - Import error: from: /Users/andreik/JFrog/Artifactory/SourceCode/artifactory/devenv/.artifactory/var/data/artifactory/tmp/artifactory-uploads/b2bb9f7c-378f-4b84-b2b1-4987ddb83029_extract/edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom to libs-release-local:edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom reason: Could not import file '/Users/andreik/JFrog/Artifactory/SourceCode/artiTest/artifactory/devenv/.artifactory/var/data/artifactory/tmp/artifactory-uploads/b2bb9f7c-378f-4b84-b2b1-4987ddb83029_extract/edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom into libs-release-local:edu/byu/kotlin-clients/bom/6.9.7/bom-6.9.7.pom.: Failed to parse pom file: input contained no data
      

        Attachments

          Activity

              People

              Assignee:
              andreik Andrei Komarov
              Reporter:
              andreik Andrei Komarov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: