You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d1ce9f6246
When a full 'composer' cannot be constructed (because there is no local composer.json and no global composer.json), some commands (e.g. `show -a`) fall back to the default repositories from the `$COMPOSER_HOME/config.json` file. Without this fix, any auth configuration from `$COMPOSER_HOME/auth.json` is not used for these repositories in such a fallback scenario. Steps to reproduce: * Configure a password-protected composer repository in `$COMPOSER_HOME/config.json`. * Configure valid credentials for that repository in `$COMPOSER_HOME/auth.json`. * Make sure there is no file `$COMPOSER_HOME/composer.json`. * Ensure the current working directory has no `composer.json`. * Run `composer show -a some/package`. Expected: Information about `some/package` is shown without needing to enter credentials. Actual: A prompt "Authentication required" is shown for the private repository. When running the same command in a dir that has a `composer.json`, or when `$COMPOSER_HOME/composer.json` exists, things work as expected. |
6 years ago | |
---|---|---|
.. | ||
Pear | 6 years ago | |
Vcs | 6 years ago | |
ArrayRepository.php | 6 years ago | |
ArtifactRepository.php | 6 years ago | |
BaseRepository.php | 7 years ago | |
ComposerRepository.php | 6 years ago | |
CompositeRepository.php | 8 years ago | |
ConfigurableRepositoryInterface.php | 9 years ago | |
FilesystemRepository.php | 7 years ago | |
InstalledArrayRepository.php | 12 years ago | |
InstalledFilesystemRepository.php | 13 years ago | |
InstalledRepositoryInterface.php | 13 years ago | |
InvalidRepositoryException.php | 12 years ago | |
PackageRepository.php | 9 years ago | |
PathRepository.php | 6 years ago | |
PearRepository.php | 9 years ago | |
PlatformRepository.php | 6 years ago | |
RepositoryFactory.php | 6 years ago | |
RepositoryInterface.php | 6 years ago | |
RepositoryManager.php | 6 years ago | |
RepositorySecurityException.php | 11 years ago | |
VcsRepository.php | 6 years ago | |
VersionCacheInterface.php | 6 years ago | |
WritableArrayRepository.php | 9 years ago | |
WritableRepositoryInterface.php | 9 years ago |