Tomas Klinkenberg
60106edd32
Added a test to confirm issue #6994 .
...
Added a encapsulated group to the replacement parameter of the `preg_replace` for GitLab in `\Composer\Util\Url::updateDistReference()`. This fixes #6994 .
7 years ago
Nicolas Grekas
5601f07bfa
Add RemoteFilesystem::getRemoteContents() extension point
7 years ago
Jordi Boggiano
e6114b2ca7
Fix support for replacing dist refs in gitlab URLs and add support for gitlab/github enterprise too
7 years ago
Jordi Boggiano
5cd0fef7ff
Upgrade to SPDX License 3.0 and handle deprecations more gracefully, fixes #6951
7 years ago
Jordi Boggiano
50665aa18d
Simplify check for current revision, refs #6684
7 years ago
Jordi Boggiano
93cd9d874b
Merge remote-tracking branch 'RobberPhex/git-repo'
7 years ago
Gabriel Caruso
50045a7536
Add no_useless_else in phpcs
7 years ago
Jordi Boggiano
c8aea719b1
CS fixes
7 years ago
Gabriel Caruso
32a409a3ee
Clean elses
7 years ago
Jordi Boggiano
eab826b00b
Merge branch '1.5'
7 years ago
Jordi Boggiano
b52fd60873
Always follow redirects in userland as we need to check if we have authentication every time for the new domain
7 years ago
Jordi Boggiano
b59dd23bb4
Merge branch '1.5'
7 years ago
Jordi Boggiano
743153e862
Tweak so that we allow authentication for domains we redirect to, refs #6717
7 years ago
Maarten Balliauw
128e424c90
Avoid sending Authorization header to another domain on redirect, fixes #6716
7 years ago
Jordi Boggiano
5130d02208
Update to latest ca-bundle
7 years ago
Jordi Boggiano
9850621c6b
Merge pull request #6788 from GawainLynch/symfony-4
...
Symfony 4
7 years ago
Jordi Boggiano
0b3bc4ccb9
Merge branch '1.5'
7 years ago
johnstevenson
b0922b95af
Report multiple inis in php.ini specific messages
...
Where systems use multiple ini files it is perhaps more useful to
suggest running `php --ini` to see their locations, rather than showing
the loaded php.ini (if one exists).
7 years ago
Jordi Boggiano
3c76e36e2c
Fix regex, refs #6735
7 years ago
gregory
8a136d18e5
Correctly extract username/password from URL
7 years ago
Robert Lu
e768e297cd
fetch tag,commit form local but not ref
7 years ago
Robert Lu
0ad985122d
Don't fetch when ref already on local
7 years ago
Gawain Lynch
8b42aed060
Create a local escapeArgument() for Symfony 4 compatibility.
7 years ago
Jordi Boggiano
bfed974ae9
Merge branch '1.5'
7 years ago
Jordi Boggiano
fc9f8c2007
Fix tests
7 years ago
Jordi Boggiano
26a50b3762
Merge branch '1.5'
7 years ago
Jordi Boggiano
11f1e03739
CS tweaks
7 years ago
Minh-Quan TRAN
007ca5ff6a
workaround for gitlab installation with relative url
...
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
7 years ago
croensch
bd6168ef85
fix pull 6740
...
wrongly copied the check, either must be in not-empty
7 years ago
croensch
6da92e98ac
also support NO_PROXY
...
since WINDOWS can only have one case and that is usually upperase
7 years ago
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
7 years ago
Jordi Boggiano
a53f2ce7c7
Merge branch '1.5'
7 years ago
Jordi Boggiano
f71baa5e0c
Try fixing 404s gitlab handling when unauthenticated, refs #6669
7 years ago
Christian Ramelow
39d8104897
Introduces a new method `copy()`.
...
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
7 years ago
Jordi Boggiano
1a488bce01
Base64 encode debug output to avoid dumping binary and push it to the end of the line
7 years ago
Jordi Boggiano
221d80d1e1
Merge branch '1.4'
7 years ago
Jordi Boggiano
2eb69cd679
Always recommend using global config to store auth tokens
7 years ago
Matt Isenhower
4dc8748e68
Update GitLab personal access token URL and the token config command
7 years ago
Jordi Boggiano
0723654362
Merge branch '1.4'
7 years ago
Jordi Boggiano
d0e780a8eb
Allow php_uname to be disabled, fixes composer/getcomposer.org#112
7 years ago
Martin Hasoň
88ec172bd8
Fix CS
7 years ago
Jordi Boggiano
bf82bfdb10
More debug output, refs #6342
7 years ago
Jordi Boggiano
1fe5064560
Better debuggability of content-length mismatch
7 years ago
Jordi Boggiano
0d5ff633b5
Merge branch '1.4'
7 years ago
Jordi Boggiano
72616a9635
Only check for safe mode on versions that have it, refs #6300
7 years ago
Jordi Boggiano
0efc66d968
Tweak message
7 years ago
Nicola Spanti (RyDroid)
5cd080dfac
Add a specific message for stupid users that put useless spaces in license
7 years ago
Alejandro Celaya
d20494ddf6
Removed duplicated "to"
7 years ago
Jordi Boggiano
122e422682
CS fixes
7 years ago
Jordi Boggiano
c8cf24daad
Minor tweaks and CS fixes to new bitbucket integration, refs #6094
7 years ago
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
7 years ago
Jordi Boggiano
daff57189f
Add http_build_query 3rd param to make it more explicit
7 years ago
Jordi Boggiano
260b85882f
Merge remote-tracking branch 'dzuelke/installmsgs' into 1.3
7 years ago
Jordi Boggiano
63447cf724
Avoid retrying forever if a gitlab token has insufficient rights, fixes #6189
7 years ago
Jordi Boggiano
08fc56b38a
Avoid using null value as string, fixes #6134
7 years ago
Stefan Grootscholten
966d0bec10
One more non-camelCase variable.
8 years ago
David Zuelke
17d5f6d88a
fix some install msg corner cases
...
mostly around updates; had to go back to a colon even for 'from cache'
8 years ago
Stefan Grootscholten
4377ba2bcb
Implement changes after review by stof.
...
- Use camelCase variable names.
- Set 3rd argument of http_build_query
- Remove obsolete checks
8 years ago
David Zuelke
2d36324e99
streamline install progress messages
8 years ago
Stefan Grootscholten
3eeb6214eb
Fix RemoteFilesystem::isPublicBitBucketDownload
...
The access token was added to requests to third party hosts the bitbucket api is redirecting to.
8 years ago
Stefan Grootscholten
b3b05949bb
Implement most desirable Authorization method.
...
As per https://developer.atlassian.com/bitbucket/api/2/reference/meta/authentication#make-requests
adding the OAuth access token in the Authorization header is desired above adding it to the URL.
8 years ago
Stefan Grootscholten
a4af559ca8
Store access-token for re-use
...
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
8 years ago
Jordi Boggiano
0bc75c3fb6
Bump memory limit to 1.5G
8 years ago
Plamen Garkov
ab4322148f
adding "fatal: unable to access" to authFalures
8 years ago
Stefan Grootscholten
d80d266201
Fix dist download from bitbucket.
...
URL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
results in the following $pathParts:
array(5) {
[0]=>
string(0) ""
[1]=>
string(5) "ariya"
[2]=>
string(9) "phantomjs"
[3]=>
string(9) "downloads"
[4]=>
string(36) "phantomjs-2.1.1-linux-x86_64.tar.bz2"
}
A dist download URL is like:
https://bitbucket.org/user/repo/get/[git-hash].zip
array(5) {
[0]=>
string(0) ""
[1]=>
string(4) "user"
[2]=>
string(4) "repo"
[3]=>
string(3) "get"
[4]=>
string(14) "[git-hash].zip"
}
8 years ago
Jordi Boggiano
4d082f77b8
Simplify composer output to take less lines
8 years ago
Jordi Boggiano
e9d04f2b2d
Merge branch '1.2'
8 years ago
Dries Vints
58b27289d0
Do not add newlines for errors
8 years ago
Dries Vints
2ab7df5566
Do not add newlines to output
8 years ago
Jordi Boggiano
f1eb787013
Merge pull request #5882 from johnstevenson/xdebug-handler-ini
...
Use random name for tmp ini and delete after use
8 years ago
Sergey Beresnev
2717e115c8
windows remote path treats as remote now
8 years ago
johnstevenson
379fb70ad9
Use random name for tmp ini and delete after use
...
Thanks to Patrick Rose for reporting this issue.
8 years ago
Thomas Flori
7896b1ffab
cache only rendered composer information
...
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori
ec27777341
code improvements as suggested
...
Thanks for your input!
8 years ago
Thomas Flori
33d026bb06
fix code style to be PSR-2 conform
...
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
8 years ago
Thomas Flori
597f834ae9
add getFileContent function
...
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.
By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Fabien Potencier
103624d4ed
Remove usage of echo when executing Composer script
8 years ago
Jordi Boggiano
0f455be01c
Add CI flag in UA header
8 years ago
Jordi Boggiano
183398fe5e
Merge pull request #5717 from berlinger-rarents/fix/5584_anon_redirect_bitbucket
...
prevent (prompt for) bitbucket auth when it redirected
8 years ago
Jordi Boggiano
c0e28a9043
Remove static/public method
8 years ago
Roel Arents
489a8f3d5a
revert to simply making an exception (no acces_token) for bitbucket/user/repo/downloads URLs
...
[#5584 ]
8 years ago
berlinger-rarents
5123c5cf76
remove redundant truth check
8 years ago
berlinger-rarents
8845ea467a
try bitbucket downloads first time without auth
...
also add tests for #5584
8 years ago
Rob Bast
e60eff5f2e
apply patch
8 years ago
berlinger-rarents
64fc8ffe3d
prevent (prompt for) auth for bitbucket public downloads
...
#5584
8 years ago
berlinger-rarents
a4e3e1b584
prevent (prompt for) bitbucket auth when it redirected
...
#5584
8 years ago
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
8 years ago
Jordi Boggiano
ff7daf0bd4
Fix handling of paths on windows when cwd is root of drive, fixes #5554
8 years ago
Jordi Boggiano
cada55dde6
Merge pull request #5491 from moolex/support_gitlab_private_token
...
Support gitlab private-token for easier access via Gitlab API
8 years ago
Rob Bast
02455712cf
check for additional possible output strings, fixes #5543
8 years ago
Jordi Boggiano
3455380413
Patch Httpoxy vulnerability
8 years ago
moyo
997a062ebd
Support gitlab private-token (or personal-access-token) for easier access via gitlab API
...
Config example:
$HOME/.composer/auth.json
{
"gitlab-token": {
"gitlab.com": "YOUR-TOKEN-HERE"
}
}
Gitlab API authentication doc: http://doc.gitlab.com/ce/api/README.html
8 years ago
Jordi Boggiano
87fbf4a6cd
Clean ups, refs #5485
8 years ago
Jordi Boggiano
8ffe224c0d
Merge remote-tracking branch 'stefangr/fix_minor_bitbucket_oauth_issues'
8 years ago
Jordi Boggiano
4998ee27b3
Re-use mirror code from the git driver, refs #5384
8 years ago
Jordi Boggiano
55e90093a4
Merge remote-tracking branch 'marvil07/faster-git-clones-using-cache'
8 years ago
Stefan Grootscholten
5a31c75289
Fix some of the remaining OAuth issues.
...
- Bitbucket will silently redirect to a login page when downloading a zip.
Added a check to see if the content-type is not text/html
- Make the path from Basic Authentication to OAuth as smooth as possible.
8 years ago
Jordi Boggiano
efb24846cb
Merge branch '1.1'
8 years ago
Jordi Boggiano
f94d06ff0a
Fix escaping
8 years ago