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

PHP Composer smart remote repository is broken - only metadata files are cached

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.8.3, 6.6.3
    • Fix Version/s: 6.13.0
    • Component/s: PHP
    • Labels:
      None
    • Sprint:
      Pom - quality September sprint

      Description

      Steps to reproduce:
      1. Create a remote PHP composer repo in Artifactrory-A
      2. Create a remote PHP composer repo in Artifactory-B, that points to the repo in Artifactory-A. (Smart Repository), with these configurations:
      URL: http://ARTIFACTORY-A:8081/artifactory/api/composer/api/composer/composer-remote OR http://ARTIFACTORY-A:8081/artifactory/composer-remote
      GIT Provider: Artifactory
      Registry URL: http://ARTIFACTORYB:8081/artifactory/api/composer/composer-remote

      3. Point your .composer/config.json file to Artifactory-B remote repo
      4. Use the composer client to pull a package, for example:

      sudo composer require twig/twig
      

      The full package is cached in Artifactory-A as expected, but only the metadata files will be cached to Artifactory-B:

      Then, if Artifactory-A is down or inaccessible, the composer client will not be able to get the packages from Artifactory-B.

        Attachments

          Activity

            People

            • Assignee:
              uriahl Uriah Levy
              Reporter:
              avivb Aviv Blonder
              Assigned QA:
              Alex Dvorkin
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: