stable

Clone or download

Read-only

request #13258: Autoloaders generated by Composer for the docman and test management plugins conflict

Both plugins want to load an include/constants.php file. In order to do that, Composer generates a file identifier from the package name and the path given in the configuration [0]. The file will then only be loaded if the file identifier has not been previously encountered during the loading process. In the case of the docman and test management plugins, the path of the file to load is identical and no package name is defined in the configurations. As a result, Composer will attribute the name "__root__" to both packages and the two files get the same identifier. This cause issues when the two files must be loaded simultaneously because only one will be loaded. To solve that, a package name has been attributed to the packages. [0] https://github.com/composer/composer/blob/1.8.5/src/Composer/Autoload/AutoloadGenerator.php#L903 Change-Id: I2d105535f4ba06d69fca639db2b76fb23d37160b

Modified Files

Name
M plugins/admindelegation/composer.json +1 −0 Go to diff View file
M plugins/agiledashboard/composer.json +1 −0 Go to diff View file
M plugins/archivedeleteditems/composer.json +1 −0 Go to diff View file
M plugins/artifactsfolders/composer.json +1 −0 Go to diff View file
M plugins/bugzilla_reference/composer.json +1 −0 Go to diff View file
M plugins/captcha/composer.json +1 −0 Go to diff View file
M plugins/cardwall/composer.json +1 −0 Go to diff View file
M plugins/create_test_env/composer.json +1 −0 Go to diff View file
M plugins/crosstracker/composer.json +1 −0 Go to diff View file
M plugins/docman/composer.json +1 −0 Go to diff View file
M plugins/document/composer.json +1 −0 Go to diff View file
M plugins/dynamic_credentials/composer.json +1 −0 Go to diff View file
M plugins/forumml/composer.json +1 −0 Go to diff View file
M plugins/forumml/composer.lock +1 −1 Go to diff View file
M plugins/frs/composer.json +1 −0 Go to diff View file
M plugins/git/composer.json +1 −0 Go to diff View file
M plugins/git/composer.lock +1 −1 Go to diff View file
M plugins/gitlfs/composer.json +1 −0 Go to diff View file
M plugins/gitlfs/composer.lock +1 −1 Go to diff View file
M plugins/graphontrackers/composer.json +1 −0 Go to diff View file
M plugins/graphontrackersv5/composer.json +1 −0 Go to diff View file
M plugins/hudson/composer.json +1 −0 Go to diff View file
M plugins/hudson_git/composer.json +1 −0 Go to diff View file
M plugins/hudson_svn/composer.json +1 −0 Go to diff View file
M plugins/label/composer.json +1 −0 Go to diff View file
M plugins/ldap/composer.json +1 −0 Go to diff View file
M plugins/mediawiki/composer.json +1 −0 Go to diff View file
M plugins/mfa/composer.json +1 −0 Go to diff View file
M plugins/mfa/composer.lock +1 −1 Go to diff View file
M plugins/openidconnectclient/composer.json +1 −0 Go to diff View file
M plugins/pluginsadministration/composer.json +1 −0 Go to diff View file
M plugins/proftpd/composer.json +1 −0 Go to diff View file
M plugins/project_ownership/composer.json +1 −0 Go to diff View file
M plugins/projectlinks/composer.json +1 −0 Go to diff View file
M plugins/prometheus_metrics/composer.json +1 −0 Go to diff View file
M plugins/pullrequest/composer.json +1 −0 Go to diff View file
M plugins/referencealias_core/composer.json +1 −0 Go to diff View file
M plugins/referencealias_git/composer.json +1 −0 Go to diff View file
M plugins/referencealias_mediawiki/composer.json +1 −0 Go to diff View file
M plugins/referencealias_svn/composer.json +1 −0 Go to diff View file
M plugins/referencealias_tracker/composer.json +1 −0 Go to diff View file
M plugins/statistics/composer.json +1 −0 Go to diff View file
M plugins/svn/composer.json +1 −0 Go to diff View file
M plugins/textualreport/composer.json +1 −0 Go to diff View file
M plugins/timetracking/composer.json +1 −0 Go to diff View file
M plugins/tracker/composer.json +1 −0 Go to diff View file
M plugins/tracker/composer.lock +1 −1 Go to diff View file
M plugins/tracker_date_reminder/composer.json +1 −0 Go to diff View file
M plugins/tracker_encryption/composer.json +1 −0 Go to diff View file
M plugins/tracker_encryption/composer.lock +1 −1 Go to diff View file
M plugins/tuleap_synchro/composer.json +1 −0 Go to diff View file
M plugins/userlog/composer.json +1 −0 Go to diff View file
M plugins/velocity/composer.json +1 −0 Go to diff View file
M plugins/webdav/composer.json +1 −0 Go to diff View file
M src/composer.json +1 −0 Go to diff View file
M src/composer.lock +3 −3 Go to diff View file
M src/www/themes/BurningParrot/composer.json +1 −0 Go to diff View file
M tests/rest/composer.json +1 −0 Go to diff View file
M tests/rest/composer.lock +1 −1 Go to diff View file
M tests/soap/composer.json +1 −0 Go to diff View file
M tools/Configuration/composer.json +1 −0 Go to diff View file