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":
,"dist":
{"type":"zip", "support":
,"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.