729 Commits (56805ecafe8597a07b4576b45e5532b9862fd65a)

Author SHA1 Message Date
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
Jordi Boggiano 39c2c8c30a Add test for password escaping 8 years ago
Marco Villegas 75b88a13fe Use regex to capture git version. 8 years ago
Stefan Grootscholten 1241e3e83c Simplify the if statement. 8 years ago
Stefan Grootscholten 42f4d344a4 Fix the replacement of the credentials.
://username:password@domain
was replaced by ://://:***@domain
instead of ://username:***@domain or ://***:***@domain
8 years ago
Stefan Grootscholten ea11a95359 Provide fallback when using basic authentication.
When composer is configured to use bitbucket basic authentication (a bitbucket username and password), you get an error
when trying to install dependencies.
This commit prevent the install process to be aborted due to uncaught exceptions.
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
Stefan Grootscholten 0e500d4c91 Make API URL available for external use. 8 years ago
Jordi Boggiano a8edaad381 Merge pull request #5335 from carlcraig/1.1
Update bitbucket oauth instructions
8 years ago
Jordi Boggiano 73d9a4717d Update list of ciphers /cc @cs278 8 years ago
Marco Villegas 5bb0433a51 Provide a way to retirve git version from the related util class. 8 years ago
Jordi Boggiano e2c3bc5e89 Merge branch '1.1' 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 32a8a60695 Merge branch '1.1' 8 years ago
Jordi Boggiano 143db7a9f5 Fix degraded mode usage on packagist, fixes #5350 8 years ago
ReenExe 53fc30fe56 clear code 8 years ago
Carl Craig e43912735b Update bitbucket oauth instructions 8 years ago
Jordi Boggiano 046c2d64a5 Fix ProcessExecutor url escaping 8 years ago
Jordi Boggiano 9cb6c2322a Fix more git URL escaping 8 years ago
Jordi Boggiano e3ae45fa12 Replace username as well if it looks like a github oauth token 8 years ago
Stefan Grootscholten 9b654048ed Fix regex for bitbucket https URLs.
If the bitbucket URL has the .git extension, the compiling of the authUrl and sshUrl result in invalid URLs.
8 years ago
Stefan Grootscholten 591f68288b Provide a fallback to ssh for https bitbucket URLs.
When running in non-interactive mode, there is no way to ask for credentials.
If there are no credentials available, no attempt is made to execute the command.

This commit provides a fallback to SSH for non authenticated, non-interactive install/updates of bitbucket https URLs.
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 38c49b32cb Less regex escaping and removed $..$ match, refs #5184 8 years ago
Jordi Boggiano d8c94c2640 Merge remote-tracking branch 'curry684/home-expansion' 8 years ago
Jordi Boggiano 95e0347917 Merge branch '1.0' 8 years ago
Jordi Boggiano ff46816e79 Add support for file:///c:/-style paths, refs #3338 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
Niels Keurentjes 4b5375f4c0 Need legacy patch for older hardcoded behaviour in handling HOME/USERPROFILE env variables. 8 years ago
Niels Keurentjes c9534d48c1 Made env variable parsing in path replacements generic across platforms and replaced old config.php implementation. 8 years ago
Niels Keurentjes f5422a441d Fixed Windows path separators and updated docs. 8 years ago
Niels Keurentjes 7e71b2bfbc Added support for expanding environment variables in paths, and tilde expansion on Windows. 8 years ago
Niels Keurentjes 23ad67b3be Implement support for tilde expansion, mainly for path repositories 8 years ago
Jordi Boggiano d20d856aa8 Merge remote-tracking branch 'nicolas-grekas/php7-static' 8 years ago
Nicolas Grekas fd2f51cea8 Speedup autoloading on PHP 5.6 & 7.0+ using static arrays 8 years ago
Jordi Boggiano 6a287b9240 Merge branch '1.0' 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 d8840df4ac Minor tweak 8 years ago
Jordi Boggiano 1f0b01e70d Merge remote-tracking branch 'watermanio/strict-types' into 1.0 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Jordi Boggiano da9b43dcc8 Merge remote-tracking branch 'curry684/code-quality' into 1.0 8 years ago
Jordi Boggiano e2056499cb Avoid open_basedir warnings on is_dir() calls when probing for CABundle 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Niels Keurentjes e6f21137ad Undefined or default return points fixed. 8 years ago
Andy Waterman d4207ff49f Strict type checks of null and bool 8 years ago
Jordi Boggiano fc57cc8d7e Remove changes in StreamContextFactory, refs #5055 8 years ago
Jordi Boggiano 2c9326bacb Merge remote-tracking branch 'wenkepaul/master' 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
Paul Wenke 9059d70ba0 Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable. 8 years ago
Jordi Boggiano 0db8bbfda3 Add update channels support to self-update and diagnose, fixes #4960 8 years ago
Niels Keurentjes fafac386b7 Ensure stat cache is cleared for junctions when using outside modifications. 8 years ago
Paul.Wenke b4d9d0fd0d Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query. 8 years ago
Paul.Wenke 9ddf8c4d55 Fixed OAuth credentials issue for subsequent clone requests. 8 years ago
Jordi Boggiano 4cc719cab3 Add support for SSL_CERT_DIR and openssl.capath, fixes #5017 8 years ago
Paul Wenke d2c5479b2d Updated documentation and fixed formatting in Bitbucket Util. 8 years ago
Paul Wenke d5332a1b5c Developed bitbucket-oauth functionality. 8 years ago
Jordi Boggiano e94066967c Add debugging info about proxy usage, refs #4332 8 years ago
Jordi Boggiano 7e1a23eef7 Add missing use statements 8 years ago
Jordi Boggiano 6f42b9c865 Disable git, svn, http protocols for VCS downloaders, fixes #4968 8 years ago
Jordi Boggiano 0ed5b541a9 Fix CS 8 years ago
Jordi Boggiano f2e2dd8f86 Merge pull request #4972 from curry684/code-quality
Code quality
8 years ago
Jordi Boggiano 070ee50693 Actually check for the dir existence before retrying, refs #4009 8 years ago
Jordi Boggiano c502601c4b Retry on RecursiveDirectoryIterator failure to open dir, refs #4009 8 years ago
Niels Keurentjes f794ee7870 Fixes for implicit variable declarations, return type mismatches and invalid method declarations. 8 years ago
Niels Keurentjes 478f923ec2 Improved junction detection on Windows NTFS, fixes #4955 8 years ago
Jordi Boggiano cb59cf0c85 Allow exception to secure-http for packagist provider files and add docs, refs #4907 8 years ago
Jordi Boggiano 79b7f5f77a Merge remote-tracking branch 'cinamo/issue-4777' 8 years ago
Rob Bast a245c4618b php-cs-fixer 8 years ago
Rob Bast dc2f201152 add trailing / and updated diagnose command 8 years ago
Rob Bast 9e8aafa3b8 use base api endpoint to verify token is valid 8 years ago
Jordi Boggiano d6d0435c54 Merge pull request #4845 from curry684/pull-4690
Implement junctioning on Windows for path repositories
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
Niels Keurentjes 54c079b559 Fixed Windows detection based on #4873 and suppressed some console output in removeJunction. 9 years ago
Niels Keurentjes 582e4796a3 Merge branch 'master' of https://github.com/composer/composer into pull-4690 9 years ago
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 9 years ago
Niels Keurentjes f2a2b18367 Added Platform utility and unit test for it. 9 years ago
Niels Keurentjes b71c67239d Made NTFS junction detection more reliable and added unit tests for the junction functions. 9 years ago
Niels Keurentjes 1b1462317c Merge branch 'master' of https://github.com/composer/composer into pull-4690 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Niels Keurentjes 358cb3f4fc Fixed exception text and some warnings. 9 years ago
Niels Keurentjes 5489586436 Fully implemented junctioning on Windows for path repositories. 9 years ago
Niels Keurentjes e515eb84e9 Add NTFS junction support to Util\Filesystem. 9 years ago
Jordi Boggiano ae14e0f086 Add ssh2 protocol default ports, fixes #4835 9 years ago
Jordi Boggiano 618e7f98b2 Force base error reporting level to include everything 9 years ago
Jordi Boggiano 4e00635298 Fix error handling support, fixes #4833 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