261 Commits (11752864eb9f30885d8d47a8d9e9aab49c032f9a)

Author SHA1 Message Date
Jordi Boggiano 3470cef1f1 Merge pull request #3818 from Hellov/master
Duplicate download progress
9 years ago
Jordi Boggiano 331425bcb3 Fix output of first line of progress when output is not decorated, refs #3818 9 years ago
Hello ef0191ee6a Duplicate download progress 9 years ago
Jérôme Tamarelle c1edfbb65c Add tests on GitLabDriver
Add an interactive prompt for gitlab token

Update doc for gitlab-domains

Add tests on GitLabDriver::supports

Update doc + CS

Optimize branch detection + fix typos

Fix test on GitLab support as it depends on SSL

Remove useless method + fix repository URL containing .git
9 years ago
Jérôme Tamarelle 802b57417a Pass GitLab credential by HTTP header instead of query string to improve security 9 years ago
Henrik Bjørnskov 782c6303bc Initial GitLab Driver
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.

Various review changes based on Stof comments.

* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
9 years ago
Rob Bast 3d329622d7 overwrite -> overwriteError 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Rob Bast 296252330e fix-token-retrying-itself 10 years ago
SofHad 45089a6771 [Minor] remove the unused private variables 10 years ago
Jordi Boggiano 59648b12a4 Add HHVM support in UA header 10 years ago
Jordi Boggiano be53c5dd2c Merge pull request #3207 from cs278/handle-low-diskspace
Handle low diskspace errors
10 years ago
Chris Smith 6edf40ee96 When $TMPDIR is low on space PHP streams silently fail 10 years ago
Jordi Boggiano 4ebc5c9a08 Add auth helper and reuse it in git downloader 10 years ago
François Pluchino 8b5c00bff0 Fix phpdoc 10 years ago
Jordi Boggiano 90d1b6e08a Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862 10 years ago
Jordi Boggiano a115cfd0d8 Fix regression in github fallback behavior 10 years ago
Jordi Boggiano c811eded7d Do not output if we are about to retry a download 10 years ago
Jordi Boggiano b6981d09e8 Fix handling of origin url in composer repository class 10 years ago
Jordi Boggiano eebffacd9f Use pagination to get tags/branches from the github API 10 years ago
Jordi Boggiano 009fcb4262 Fix arg signature 10 years ago
Jordi Boggiano f3c112e9e0 Split non-interactive and bad credential cases 10 years ago
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 10 years ago
Pádraic Brady 470fb58273 Add a bundled cacert.pem as a last resort option 10 years ago
Pádraic Brady 9881d76216 Adds Composer\Factory::createRemoteFilesystem():
- Implemented in self-update command
- Added to Composer\IO\BaseIO the getInputOption() and getInputArgument() getters to allow access to input
- Fixed some minor bugs
10 years ago
Pádraic Brady 81b86acc53 Merge branch 'master' of github.com:composer/composer into tls-config
Conflicts:
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Pádraic Brady 8abff794cd Fix CN matching to use correct host (should almost eliminate TLS retries where wildcard CNs are used) 10 years ago
Jordi Boggiano 1851c29dd3 Update code to work with #2766 10 years ago
Jordi Boggiano 9db2a537e5 Merge remote-tracking branch 'cs278/github-otp-support' 10 years ago
Jordi Boggiano 28bb781324 Capture response bodies in exceptions when http requests fail 10 years ago
Pádraic Brady 2972ec3d86 Show warning when we retry a TLS connection for downloads 11 years ago
Pádraic Brady c9c6849df0 Add Common Name (CN) matching checks and TLS connection retry (by default).
For example, the communicated host will be github.com, but the CN is *.github.com. Also not matching api.github.com.
The logic detects an initial TLS CN-mismatch error, and parses the correct CN from the error, then checks if the CN and URL have same host before retrying.
11 years ago
Pádraic Brady a2bf14e381 Make disableTls a core RemoteFilesystem option - per method invites human error 11 years ago
Pádraic Brady 49590af656 $originUrl passed to RemoteFilesystem is actually a HOST string already (so far!) 11 years ago
Pádraic Brady 0a8180674e Adding some HTTPS check to diagnose command (stash) 11 years ago
Pádraic Brady 2a552df315 Fix openssl_x509_parse() function namespace issue under PHP 5.3.3 11 years ago
Pádraic Brady 2648064e5a Some typos/corrections 11 years ago
Pádraic Brady 1e1e713329 Added test for RemoteFilesystem TLS options setup 11 years ago
Pádraic Brady fa54b7054c Put CN matching above the final recursive option merge 11 years ago
Pádraic Brady 9412bb427a Add CN_match and SNI_server_name setup to RemoteFilesystem 11 years ago
Pádraic Brady ca4b4696b0 Added Exceptions, errors and info messages for self-update command and TLS defaults to RemoteFilesystem 11 years ago
Chris Smith 3f6a62099d Add an option which causes reauth attempts to be bypassed 11 years ago
Chris Smith 20dac3e836 Remove GitHub OTP code from RFS class 11 years ago
Chris Smith 9a0f4392da Trim whitepsace from each argument 11 years ago
Chris Smith 360df90ba5 Add GitHub OTP to request headers 11 years ago
Chris Smith 3f53acc9af Test if the 401 was caused by 2FA and ask for OTP if appropriate 11 years ago
Chris Smith 23d35204cd Bail out of the normal 401 handling routine when the origin is GitHub 11 years ago
Jordi Boggiano cc7920000c Ask for auth if we get a 403 and did not have auth yet, fixes #2464 11 years ago
Nils Adermann f0b45099c1 Correct authorship info for files I edited 11 years ago
Nils Adermann 9402a9fb3c Plugins receive composer and io objects on construction already 11 years ago
Jordi Boggiano e99b327342 Clarify that composer.json is being read and not downloaded, refs #2096 11 years ago
Jan Prieser cc1e10e8ae allow FileDownloader to use username:password@ info when downloading through https? 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Jordi Boggiano 1debe22412 Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 11 years ago
Stephan Hochdörfer 4d92626ef0 Fix for recursion problem with wrong http basic auth credentials. First
I got an "array_replace_recursive(): Argument #2 is not an array" error
and after fixing that it resulted in another error saying "Undefined
variable: result".
11 years ago
Jordi Boggiano 29fcca8595 Avoid weird recursion pattern by retrying after the first request is complete 11 years ago
Jordi Boggiano 4d52900dff Bypass failure if the server is just asking for credentials, fixes #1845 11 years ago
Jordi Boggiano e78a21015b Dont try to gzip decode empty responses, refs #1846 11 years ago
Jordi Boggiano 81f1451118 Clarify exception message when an empty response is returned 11 years ago
Jordi Boggiano a9db844a41 Merge remote-tracking branch 'bitExpert/feature/repo_basic_auth' 11 years ago
Jordi Boggiano 3b97e2e260 Add support for new verbosity levels, and initial debug output 11 years ago
Jordi Boggiano 842155d69e Use original URL for exceptions, not the one containing authorization, fixes #1722 11 years ago
Stephan Hochdörfer df897b42c2 Removed dead statement. 11 years ago
Stephan Hochdörfer 906563451e Reverted the last changes. Changed logic in callbackGet() method to
respect the 401 handling also if STREAM_NOTIFY_FAILURE fires as on my
local machine the handling of STREAM_NOTIFY_AUTH_REQUIRED never got
executed.
11 years ago
Stephan Hochdörfer dcdcf57f3f Moved 401 handling from ComposerRepository to RemoteFilesystem and
displaying the url when asking for the credentials.
11 years ago
Stephan Hochdörfer f2afbbac2f Extended the fetchFile() method of the ComposerRepository class to be
able to deal with http basic auth. In case the remote resource responds
with a 401 ask the user for access credentials and retry quering the
resource again.
11 years ago
Jasper N. Brouwer 4347cb7a55 Fixed the "access_token query param" (5b1f314) fix 12 years ago
Jordi Boggiano 5b1f3145c2 Update the way github authorization is handled, fixes #1632
Since api.github.com redirects to s3 for downloads and s3 does not like Authorization
headers, we have to rely on the access_token query param. Otherwise php follows redirects
but still sends the Authorization header to all following requests.
12 years ago
Jordi Boggiano b8da471f9a Clarify transport exception for 403s, fixes #1416 12 years ago
Igor Wiedler 4959c2bdc6 Replace references of a11n with a12n where appropriate
Authorization => Authentication.
12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Jordi Boggiano 43c21a736c Send headers as array instead of one big string 12 years ago
Jordi Boggiano 73aea05907 Send source instead of @package_version@ for the composer version in UA 12 years ago
Jordi Boggiano 7d4857fc5b Catch all 4**/5** responses 12 years ago
Jordi Boggiano 3b01d26d67 Swap user credentials for an OAuth token from GitHub 12 years ago
Thomas Adam 1bd5d88b02 quick workaround for Github API limit 12 years ago
Jordi Boggiano 852c369575 Improve error reporting on downloads and copies, refs #1228 12 years ago
Sander Marechal 0d9e08f9af Use array_replace_recursive() instead of array_merge_recursive() 12 years ago
Sander Marechal 6cf860669f Add repository stream context options
Add support for passing stream context options to the
StreamContextFactory. This allows support for SSH keyfiles, SSL
certificates and much more. Example:

{
    "repositories": [
        {
            "type": "composer",
            "url": "ssh2.sftp://host:22/path/to/packages.json",
            "options": {
                "ssh2": {
                    "username": "composer",
                    "pubkey_file": "/path/to/composer.key.pub",
                    "privkey_file": "/path/to/composer.key"
                }
            }
        }
    ]
}
12 years ago
Jordi Boggiano a54bf6269e Improve error messages when network failures occur 12 years ago
Ismael Ambrosi b368031657 Fixed typos 12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano b3c395b8d2 Add PHP info to UA string 12 years ago
Jordi Boggiano 3639611bc6 Add OS/Version to UserAgent 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano c754f96677 Removed last password/username from IOInterface 12 years ago
Jordi Boggiano 5c5f87008f Report proper error if a write fails instead of saying the download failed 12 years ago
Jordi Boggiano 31ed0c1fb0 Fix progress display getting stuck at 95% 12 years ago
Jordi Boggiano 22149d3a70 Fix gzip decoding after a redirect 12 years ago
Jordi Boggiano f98bd971f2 Add Gzip handling to RemoteFilesystem 12 years ago
Jordi Boggiano 659775a607 Merge remote-tracking branch 'simensen/GitHub404FixPartTwo' 12 years ago
Beau Simensen ce08b2fc4f Fix HTTPS through Proxy errors. 12 years ago
Beau Simensen 6efbc7d531 Enhanced GitHub API/Private Repository support 12 years ago
Jordi Boggiano 89f69256f8 Merge remote-tracking branch 'kostiklv/console-overwrite-fix' 12 years ago
Jordi Boggiano a4f9e03d35 Add workaround for PHP bug #61336 12 years ago
Jordi Boggiano 3e22084ea4 Overhaul VcsDrivers, introduce TransportException for remote filesystem errors 12 years ago
Konstantin Tjuterev 0b7896cdad Simplified & fixed ConsoleIO->overwrite, corrected output when downloading with progress 13 years ago
Martin Hasoň 303dae7968 Fixed typos and bugs in the RemoteFilesystem class 13 years ago
Jordi Boggiano 4d7ecdcb69 Fix authentication behavior when re-entering get() 13 years ago
Jordi Boggiano a8aef7e203 Text tweaks 13 years ago
Jordi Boggiano 60fddb2c09 Use parse_url instead of manual parsing 13 years ago
Jordi Boggiano 8b7a64ab28 Limit progress output, mitigates #283 13 years ago
Jordi Boggiano 844c43092f Fix re-entrant behavior 13 years ago
Jordi Boggiano db03b7bbbd Fix line endings 13 years ago
François Pluchino dbfbbab904 Add changes requested 13 years ago
François Pluchino 2e3eed081a Merge remote branch 'composer/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
13 years ago
François Pluchino bc232af018 Bug fix display downloading info 13 years ago
François Pluchino 953f0992f7 Merge callback method of FileDownloader and VcsDriver
Required corrections added
13 years ago
François Pluchino 9638247e44 Move to Util Class 13 years ago