Jordi Boggiano
3f5a986170
Show warning in all 400/500 responses if available, fixes #7814
5 years ago
Matthew Brown
65903aacfd
Fix type issues ( #7996 )
...
* Fix type issues found by Psalm
5 years ago
Jordi Boggiano
6c782599f1
Make IOInterface implement psr-4 LoggerInterface, fixes #5180
5 years ago
Jordi Boggiano
fd11cf3618
Port/extract most behavior of RemoteFilesystem to CurlDownloader
6 years ago
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
6 years ago
Jordi Boggiano
56805ecafe
Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation
6 years ago
Jordi Boggiano
2528654c53
Merge branch '1.7'
6 years ago
Seven Du
148e503b31
Modified comment block ( #7700 )
...
* Modified comment block
6 years ago
François-Xavier de Guillebon
114217c6e3
Fix ini_get() for boolean values
6 years ago
Stephan Vock
8b8df01336
Bitbucket: fix redirect behaviour
6 years ago
Jordi Boggiano
e718f34ba4
Properly detect rate limit errors on github before outputting messages, fixes #6621
6 years ago
Jordi Boggiano
e7a9bd3362
Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530
6 years ago
Nicolas Grekas
a3bbcf9c77
Make RemoteFilesystem::getRemoteContents() report response headers also on exceptions
6 years ago
Markus Staab
eb94f8346a
Fixed typo
6 years ago
Jordi Boggiano
c5fa3bdde0
Migrate to repo.packagist.org for package metadata
6 years ago
Jordi Boggiano
1983a450b4
Use rawurldecode instead of urldecode, fixes #7407
6 years ago
Jordi Boggiano
2bd34c0534
Merge branch '1.6'
6 years ago
Jordi Boggiano
174c71de04
Handle http 401/403 differently to allow reading warning message
6 years ago
Nicolas Grekas
3b391191b9
Fix RemoteFilesystem::getRemoteContents() on-failure behavior
7 years ago
Nicolas Grekas
5601f07bfa
Add RemoteFilesystem::getRemoteContents() extension point
7 years ago
Jordi Boggiano
c8aea719b1
CS fixes
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
0b3bc4ccb9
Merge branch '1.5'
7 years ago
Jordi Boggiano
3c76e36e2c
Fix regex, refs #6735
7 years ago
gregory
8a136d18e5
Correctly extract username/password from URL
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
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
7 years ago
Jordi Boggiano
f71baa5e0c
Try fixing 404s gitlab handling when unauthenticated, refs #6669
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
bf82bfdb10
More debug output, refs #6342
7 years ago
Jordi Boggiano
1fe5064560
Better debuggability of content-length mismatch
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
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
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
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
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
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
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
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
Stefan Grootscholten
1241e3e83c
Simplify the if statement.
8 years ago
Stefan Grootscholten
7716ef059b
Add the access token as query string parameter.
8 years ago
Stefan Grootscholten
6c8b0cc2c1
Change authentication for bitbucket to oauth.
8 years ago
Jordi Boggiano
73d9a4717d
Update list of ciphers /cc @cs278
8 years ago
Jordi Boggiano
3ac822d5e2
Fix access_token param being incorrectly added on github requests after a redirection, fixes #5099
8 years ago
Jordi Boggiano
143db7a9f5
Fix degraded mode usage on packagist, fixes #5350
8 years ago
Jordi Boggiano
36665d791d
Merge branch '1.0'
8 years ago
Jordi Boggiano
c66639fe03
Fix content-length check to look at the last header received, fixes #5268
8 years ago
Jordi Boggiano
2062070be9
Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008
8 years ago
Jordi Boggiano
31dcc0bdea
Merge branch '1.0'
8 years ago
Jordi Boggiano
1bf711fe1f
Guard against mbstring func_overload, fixes #5218
8 years ago
David Zuelke
d716c73333
fail download on content-length mismatch
8 years ago
Jordi Boggiano
765a958c42
Merge pull request #5137 from dzuelke/rfs_conlen
...
Fail download on content-length mismatch
8 years ago
Jordi Boggiano
b1723644e0
Use extracted ca-bundle package
8 years ago
Jordi Boggiano
e2056499cb
Avoid open_basedir warnings on is_dir() calls when probing for CABundle
8 years ago
David Zuelke
5dd4d69a6d
fail download on content-length mismatch
8 years ago
Niels Keurentjes
49524bc4ba
Centralize secure-http checking
8 years ago
Jordi Boggiano
37a1e12672
Mark failed downloads as failed instead of 100% complete, fixes #5111
8 years ago
Jordi Boggiano
4cc719cab3
Add support for SSL_CERT_DIR and openssl.capath, fixes #5017
8 years ago
Jordi Boggiano
e94066967c
Add debugging info about proxy usage, refs #4332
8 years ago
Niels Keurentjes
f794ee7870
Fixes for implicit variable declarations, return type mismatches and invalid method declarations.
8 years ago
Jordi Boggiano
cb59cf0c85
Allow exception to secure-http for packagist provider files and add docs, refs #4907
8 years ago
cinamo
b6b416111e
Fixed http check
9 years ago
cinamo
4f5b4aff9c
Undid CS changes
9 years ago
cinamo
da44f46b9c
Code style fixes
9 years ago
cinamo
ef60478926
Added secure-http flag, defaults to true
9 years ago
Jordi Boggiano
09a6a19257
Avoid decoding gzip responses after a redirect, fixes #4897
9 years ago
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
9 years ago
Jordi Boggiano
ae14e0f086
Add ssh2 protocol default ports, fixes #4835
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Jordi Boggiano
5c944d45ac
Merge pull request #4827 from curry684/issue-4203
...
Added more graceful warning suppression utility
9 years ago
Jordi Boggiano
fff5074bbf
Fix additionalOptions getting dropped when SAN and redirect handling are combined, refs #4782
9 years ago
Niels Keurentjes
76c1645a0e
Merge remote-tracking branch 'upstream/master' into issue-4203
9 years ago
Niels Keurentjes
18cd4f966b
Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203 , #4683
9 years ago
Jordi Boggiano
bdb97e7527
Reuse new TlsHelper for CA validation, refs #4798
9 years ago
Jordi Boggiano
1ea810d40b
Merge remote-tracking branch 'cs278/san-support'
9 years ago