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

Unable to download PHP composer package from the Virtual repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PHP
    • Labels:
    • Location:
      External

      Description

      Description:
      The specific PHP composer package (i.e “phpunit/phpunit” ) is not getting downloaded from the virtual repository. However, the same package is getting downloaded from the remote repository (PHP composer).

      Expected behavior:
      Users should be able to download the “phpunit/phpunit” package from the virtual repository.

      Actual behavior:
      The “phpunit/phpunit” package is failing to download from the virtual repository with the below error.

      Client logs:
      [UnexpectedValueException]
      Unknown package has no name defined ({"version":"dev-fix\/233-in_function_defined_const","source":

      {"type":"git","url":"https:\/\/github.com\/phpDocumentor\/Reflection.git","reference":"88e669203ccfa6b66b7d9c227b90d3eb47946a3c"}

      ,"dist":

      {"type":"zip", "support":

      {"issues":"https:\/\/github.com\/phpDocumentor\/Reflection\/issues","source":"https:\/\/github.com\/phpDocumentor\/Reflection\/tree\/fix\/233-in_function_defined_const"}

      ,"notification-url":null}).

      Client version used: PHP version = 2.2.3, composer version = 7.3.29

      Steps to Reproduce:
      1) Configure composer virtual repository and add to the composer client
      2) Run the "composer install" command on below json file.

      composer.json:

      {
        "name": "root/foo",
        "description": "test",
        "type": "project",
        "license": "none",
        "require": {
         "phpunit/phpunit": "9.5.11"
        },
        "authors": [
          {
            "name": "me"
          }
        ],
        "minimum-stability": "dev"
      }
      

       

      Environment details: 

      Artifactory version: 7.29.3, 7.29.8

      DB type & Version: PostgreSQL 11.11

      Is this an HA env? No

      Is this On-Prem or SaaS? Saas

      OS details if relevant: NA

       

      Impact:

      Builds will fail while downloading the PHP composer package from the virtual repository.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sandeepa Sandeep Anikapati
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26722 -
                  SYNCHRONIZED
                  • Last Sync Date: