Possum
29ca21f30e
PHP version checks tweaking
9 years ago
Jordi Boggiano
13a3349603
Merge pull request #3967 from xi-ao/master
...
Fixed svn update command
9 years ago
Daum
aa4afbf49f
Updated AuthHelper to pass a null for maximum attempts to the IOInterface instead of false so an exception is not thrown by Symfony Question class.
9 years ago
Anael Ollier
27074083cc
Replaced join() by implode()
9 years ago
Anael Ollier
2f82ed7035
Fixed the fix :)
9 years ago
Anael Ollier
b2efb95f33
Fixed svn update command (fails before attempting to use authentication provided in auth.json)
9 years ago
Jordi Boggiano
1cb427ff5c
Force http1.1 protocol
9 years ago
Jordi Boggiano
a32c919145
Return null instead of false
9 years ago
Jordi Boggiano
921b3a0eba
Fix regression with non-SPDX licenses in show command, refs #3885
9 years ago
Jordi Boggiano
dbfd47eeca
CS fixes
9 years ago
Jordi Boggiano
3a06e6f036
Merge pull request #3885 from jakoch/patch-spdx
...
updated spdx-license handling to include metadata
9 years ago
Roshan Gautam
7bf886b3ba
Remove two factor authentication
9 years ago
Roshan Gautam
f870396568
Add oauth2 support for gitlab
9 years ago
Frederik Bosch
951b07eabc
Fix #3903
9 years ago
Kocsis Máté
258408524f
Converted Symlink utility to UTF-8
9 years ago
Kocsis Máté
38c26ae26b
Added Symlink utility class
9 years ago
jakoch
74a077dd3d
updated spdx-license handling to include metadata
...
issue https://github.com/composer/composer/issues/3744
summary of changes
- replaced bin script "fetch-spdx-identifiers" by "update-spdx-licenses"
- "update-spdx-licenses" uses "Composer/Util/SpdxLicensesUpdater" to update "spdx-licenses.json" file with license identifier, fullname and osi-approved-status
- dropped "spdx-identifiers.json" (identifiers only)
- dropped "SpdxLicenseIdentifier", it's just "SpdxLicense" now
- modified "ShowCommand" to output the license with metadata and removed some unused method arguments (cleanup)
9 years ago
Frederik Bosch
79490f662e
Revert #3813 , implement differently
...
Fix #3830
9 years ago
Jordi Boggiano
c5cd184767
Revert 331425bcb3
as well, fixes #3612
9 years ago
Stanislav Khromov
6c35dd6b2d
Improved wording
...
All other verbs use are in the form of "doing something", ie Installing, Downloading. "connection" is the odd one out.
9 years ago
Jordi Boggiano
b80038804f
Fix env override regression, fixes #3820
9 years ago
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
Nicolas Grekas
be22a87d9c
Run processes with predictable LANGUAGE=C
9 years ago
Jordi Boggiano
2eb69f120e
Move check to follow the previous code change
9 years ago
Jordi Boggiano
0c775e997e
Fallback to https directly if ssh proto is disabled on github private repos, fixes #2786
9 years ago
Rob Bast
3d329622d7
overwrite -> overwriteError
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Rob Bast
a34335a9bb
github deprecation changes
...
- added some tests
- minor bug fixes discovered during testing
- resolved two deprecations (rate limit api and authorizations api)
- added some more comments to make the flow more understandable
10 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
Jordi Boggiano
c9f666f60b
Also clean up DYLD_LIBRARY_PATH before running git, refs #2146
10 years ago
SofHad
45089a6771
[Minor] remove the unused private variables
10 years ago
Jordi Boggiano
8dad846613
Add SNI settings for SSL URLs that are proxied, fixes #3204
10 years ago
Jordi Boggiano
4a6503fe36
Add suppor for https_proxy, fixes #3204
10 years ago
Jordi Boggiano
59648b12a4
Add HHVM support in UA header
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
e4d96750ee
Merge pull request #3164 from xelan/github-expose-hostname-setting
...
Option to disable inclusion of hostname in OAuth app name
10 years ago
Jordi Boggiano
be53c5dd2c
Merge pull request #3207 from cs278/handle-low-diskspace
...
Handle low diskspace errors
10 years ago
Jordi Boggiano
d093481ed5
Merge remote-tracking branch 'garoevans/intelligent-auth'
...
Conflicts:
src/Composer/Util/Git.php
10 years ago
Jordi Boggiano
6e4a21d700
Merge remote-tracking branch 'hakre/patch-2'
10 years ago
Jordi Boggiano
923191a489
Merge remote-tracking branch 'hakre/patch-1'
10 years ago
Jordi Boggiano
e61e62908e
Merge remote-tracking branch 'frederikbosch/patch-1'
10 years ago
Jordi Boggiano
91ac3e1426
Add support for unixy paths in git/hg local repo urls, closes #3294
10 years ago
frederik
d1d40502bf
ProcessExecutor::escape
10 years ago
frederik
7ae1430689
#3297 ProcessUtil class using ProcessUtil of Symfony Console
10 years ago
Bastian Hofmann
b279dda1c0
Merge branch 'master' of https://github.com/composer/composer
10 years ago
Jordi Boggiano
2c237fdfdf
Handle files in Filesystem::copyThenRemove, fixes #3287
10 years ago
Bastian Hofmann
204fc207fa
Moved config option to not save subversion credentials to repository configuration, added documentation.
10 years ago
Bastian Hofmann
b132e4eae0
Added cacheCredentials config flag for saved SVN credentials to control the --no-auth-cache flag
...
Example config:
{
"http-basic": {
"svn.example.com": {
"username": "user",
"password": "password",
"cacheCredentials": false
}
}
}
10 years ago
Jordi Boggiano
d79f2b0fd3
Adds warning when the version field is set, fixes composer/packagist#438
10 years ago
Chris Smith
6edf40ee96
When $TMPDIR is low on space PHP streams silently fail
10 years ago
hakre
3e727850ff
unlinking symlinked directories and trailing slashes
...
Filesystem::removeDirectory() didn't detect all symlinked directories
properly due to not resolving pathnames with trailing slashes first.
this commit fixes that issue by resolving pathnames with trailing slashes
by removing those in case they are representing a symlinked directory.
#3144
Reference:
A.4.12 Pathname Resolution - The Open Group Base Specifications Issue 7
IEEE Std 1003.1, 2013 Edition Section
<http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html >
10 years ago
hakre
0ad2449fe8
rmdir needs to be used on windows to remove symbolic links to directories
10 years ago
xelan
bddba72e13
Option to disable inclusion of hostname in OAuth app name
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
Gareth Evans
cfc632b019
Determine auth URLs more intelligently
10 years ago
Jordi Boggiano
745dcbce33
Fix file deletions to always use a delayed retry on windows, fixes #3074
10 years ago
Jordi Boggiano
f79b34c1df
Fix typo
10 years ago
Jordi Boggiano
24ef869815
Remove symlinks instead of recursing into them when deleting, fixes #3050
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
e890d1bc59
Remove use of glob, fixes #3042
10 years ago
Jordi Boggiano
08e34858d6
Fix code to use hostname only, refs #3026
10 years ago
Jordi Boggiano
89ec322929
Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json'
10 years ago
Jordi Boggiano
71397f82e4
Remove forced dir removal before install, fixes #3035
10 years ago
Benjamin Grandfond
31b95ed02c
Make auth credential creation private
10 years ago
Jordi Boggiano
9b580bd800
Do not realpath ./.., refs #2932
10 years ago
Jordi Boggiano
56c5af8dc4
realpathGlob tweaks, refs #2932
10 years ago
Richard Quadling
443858dae7
Force all glob results to be realpath'd.
10 years ago
Jordi Boggiano
effacc1185
Do not realpath relative local URLs, fixes #2916
10 years ago
Benjamin Grandfond
a21b0f82db
Allow SVN to connect with credentials provided with the auth.json file
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
43a72d1132
Merge pull request #2985 from tristanlins/hotfix/filesystem-remove-directory
...
Graceful fallback in Filesystem::removeDirectory() to php
10 years ago
Jordi Boggiano
1ce419cc43
Fix var name
10 years ago
Jordi Boggiano
3ebc869060
Extract functionality from GitDownloader to make it more reusable
10 years ago
Jordi Boggiano
e0886b94a2
Make Git::cleanEnv static
10 years ago
Jordi Boggiano
a115cfd0d8
Fix regression in github fallback behavior
10 years ago
Tristan Lins
5f86037ff3
Graceful fallback in Filesystem::removeDirectory() to php, if process failed.
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
39c8d3e6e1
Ignore empty refs
10 years ago
Jordi Boggiano
31b787249c
More fixes to mirror support
10 years ago
Jordi Boggiano
b39df32d4b
Minor fixes
10 years ago
Jordi Boggiano
ba776c06ee
Add composer mirror class
10 years ago
Jérôme Macias
4f417e3985
Add --no-check-all option to composer validate command
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
Jordi Boggiano
e7b82cdd88
Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320
10 years ago
Jordi Boggiano
f233383de8
Merge pull request #2834 from vuhl/master
...
Fixing perforce driver/downloader bugs
10 years ago
Clark Stuth
8dc6a13a1c
Removing dead code segment.
10 years ago
Clark Stuth
a12c4e2a17
Removed getWindowsFlag and setWindowsFlag methods from Perforce object.
10 years ago
Jordi Boggiano
b09fb521d2
Fix headers array, fixes #2821
10 years ago
Clark Stuth
dd1fd0e306
fixed perforce to reference labels instead of invalid tags
10 years ago
Clark Stuth
2651cbc5fe
Fixing perforce dev-master stored reference bug.
10 years ago
Clark Stuth
8fc1961463
Fixing delete client workspace bug.
10 years ago
Clark Stuth
c11105dd60
Fixing bug not cleaning up workspaces.
10 years ago
Clark Stuth
492539101c
got all unit tests passing
10 years ago
Clark Stuth
24dd42267f
almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods
10 years ago
Clark Stuth
0f7b078d6c
added new dependency to Perforce object, updating some tests.
10 years ago
Pádraic Brady
470fb58273
Add a bundled cacert.pem as a last resort option
10 years ago
Pádraic Brady
306ba77e93
Implement the RemoteFilesystem Factory everywhere...
...
- also fixes impacted test
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
11 years ago
Pádraic Brady
8abff794cd
Fix CN matching to use correct host (should almost eliminate TLS retries where wildcard CNs are used)
11 years ago
Jordi Boggiano
5b0dc99fec
Reuse github existing tokens instead of failing, fixes #2724
11 years ago
Jordi Boggiano
1851c29dd3
Update code to work with #2766
11 years ago
Jordi Boggiano
9db2a537e5
Merge remote-tracking branch 'cs278/github-otp-support'
11 years ago
Jordi Boggiano
28bb781324
Capture response bodies in exceptions when http requests fail
11 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
Jordi Boggiano
432ace33d4
Clean up svn environment to fix OSX issues, fixes #2708 , refs #2146
11 years ago
Chris Smith
8b7cdb7fb4
Treat HTTP header as case insensitive
11 years ago
Chris Smith
bcee7a04ee
Add message when SMS authentication code is required
11 years ago
Chris Smith
2a08f55079
Bypass RFS auth failure handling
11 years ago
Chris Smith
cedae88b67
Add OTP token to the request headers
11 years ago
Chris Smith
7e0d8c1bc5
Do not ask for credentials again if OTP token is present
11 years ago
Chris Smith
be5e4b1589
Intercept auth rejections requiring an OTP token
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
matt-whittom
4a49533988
Merge pull request #2 from rockerest/master
...
Escape spaces when registering the Perforce client spec
11 years ago
rockerest
9ff0c767af
Escape spaces when registering the Perforce client spec
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
Jordi Boggiano
1b789d5226
Fix indenting, refs #2535
11 years ago
chr0n1x
528d35a835
ConfigValidator: ensure that require-dev exists during override check
...
- Ensure that require-dev is present before checking for dependeny overrides.
- A small grammar update for the warning message.
11 years ago
Pascal Borreli
2f4df9d459
Fixed typos
11 years ago
Jordi Boggiano
4ae5c95c8d
Detect require overrides, fixes #2503
11 years ago
mwhittom
dde9c309fd
incorporated change to Perforce: Capture output, stopping errors showing up if p4 is not available
11 years ago
mwhittom
a8084e46ff
Added error handling and error messages around missing perforce driver, invalid username/password
11 years ago
Jordi Boggiano
5b48abe833
Fix previous commit
11 years ago
Jordi Boggiano
8173b42a8a
Force unresolvable hosts through proxies, fixes #2449
11 years ago
Jordi Boggiano
730dcbb80a
Detect failed gethostbyname, refs #2449
11 years ago
Jordi Boggiano
dff5e3c542
Fail hard if anything attempts to wipe the entire filesystem/partition, fixes #2409
11 years ago
Chris Smith
c0316aa957
Capture output, stopping errors showing up if p4 is not available
11 years ago
Wouter Wolters
97d52968ab
Fix authentication issue with subversion 1.8
11 years ago
Gennady Feldman
6419266ea3
Validate the originUrl against the list of 'github-domains' from the config.
11 years ago
Gennady Feldman
e78499d28d
First working version of GitHub Enterprise API.
11 years ago
Jordi Boggiano
50fbfe4d63
Filesystem/autoload fixes for windows, refs #2304 , #2342 , #2365
11 years ago
Jordi Boggiano
e2671b6510
Add test and fix patch for #2304 , refs #2341
11 years ago
Jordi Boggiano
17886c3b2e
Merge remote-tracking branch 'hason/windows'
11 years ago
Jordi Boggiano
efb41d467e
Skip redirect to URL lines in svn output, fixes #2338
11 years ago
Jordi Boggiano
08243ce2e3
Fix handling of urlencoded user and password in proxy urls, fixes #2339
11 years ago
mwhittom
0c5f4d9860
Update to fix issue with multiple perforce repositories
11 years ago
Martin Hasoň
9df65ee4c8
Fixed filesystem issue on windows
11 years ago
Fabian Grutschus
20854a50b4
Removed unnecessary test and just check for return code
11 years ago
Fabian Grutschus
0c5bd559f2
Changes comparsion to strict and removed a comment
11 years ago
Fabian Grutschus
67083e436b
Check for exit code is equal to 0 instead of 127
11 years ago
Fabian Grutschus
5ae5963acd
Fix for Preforce utility does not check if p4 command exists
11 years ago
Jordi Boggiano
0fbb4cbd16
CS fixes and renaming a few methods, refs #2184
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
9a806658d6
Merge remote-tracking branch 'vuhl/master'
...
Conflicts:
src/Composer/Factory.php
11 years ago
Nicolas Bastien
52711d121c
Remove unused use statement.
11 years ago
Martin Hasoň
3c0a620ad5
Fixed path analysis
11 years ago
Jordi Boggiano
3f6227a996
Add workaround for php bug 53460 glob() can return false, fixes #2278
11 years ago
Karoly Negyesi
dd4db91ae7
using mkdir() in copyThenRemove() leads to errors if the target exists or not a dir, use ensureDirectoryExists() instead
11 years ago
mwhittom
8a319a719b
Fixed issue with non-streaming perforce depots, also fixed issue where PerforceDownloader was not logging in
11 years ago
mwhittom
1b68f9151e
removed excess space at end of function call
11 years ago
mwhittom
114f6c9b6b
Replaced proc_open in windowsLogin method with call to Symfony Process Component
11 years ago
mwhittom
2e737ac439
updated to replace double-quotes with single quotes
11 years ago
mwhittom
8207518e04
Updated to clean up code and rename variables to camelcase
11 years ago
Nils Adermann
5be0ba14fe
Warn about composer-installer type in composer validate
11 years ago
mwhittom
07d46aa3c3
Fixed spacing issues for PSR-2
11 years ago
mwhittom
774a55befd
Updated to match psr-2 spec, fixed header comments
11 years ago
matt-whittom
f737e49aae
Fixed issue with downloader assuming repository would be VcsRepository
11 years ago
matt-whittom
dd81449998
Updated to remove vfsStreams (no longer needed by tests)
...
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom
7fdcdb4c54
Updated to complete functionality in Downloader to handle updates, returning change logs.
11 years ago
matt-whittom
1019c014e5
using theirs
11 years ago
matt-whittom
bab10dd9f8
Added ability to pass p4user and p4password in composer.json
11 years ago
matt-whittom
53d6fcd6d3
using theirs
11 years ago
matt-whittom
a5df2851ef
Finished cleanup of debug messages.
11 years ago
matt-whittom
43108b4692
Cleanup phase 1
...
Removed branches - only returning the "master"
11 years ago
matt-whittom
64bda65e11
Updated Perforce driver to use labels
...
dev checkin, lots of cleanup to do
11 years ago
matt-whittom
36dd7dfea5
Cleaned up perforce code
...
Checks to see if already logged in to Perforce, and prompts for password if not and P4PASSWD is not set
Checks server url with perforce call
Checks for composer.json file, and returns the contents of the file already retrieved.
11 years ago
matt-whittom
0d061f2530
Added Perforce to Composer
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
DerManoMann
abb1db54bb
Add another svn auth failed string to check (older svn server version)
11 years ago
Jordi Boggiano
b4c0b18896
Add tests, refs #2017
11 years ago
Jordi Boggiano
13c7be2d7e
Reformat some code and avoid adding proxy auth if no_proxy matched the url, refs #2017
11 years ago
Jordi Boggiano
2492dea4a8
Merge remote-tracking branch 'radnan/issue-1318'
11 years ago
Jordi Boggiano
e99b327342
Clarify that composer.json is being read and not downloaded, refs #2096
11 years ago
Jordi Boggiano
3ffad59719
Also try a php copy-and-remove on unix if mv failed, refs #1765
11 years ago
radnan
7e584de9e8
return early if rule is * and remove one level of nesting
11 years ago
nickolay-cure4you
d4ffb85aa4
Fix typo. when safemode is enabled we experienced the problem with ini_get arguments number
11 years ago
radnan
a92ceaf4fe
fix minor typo
11 years ago
radnan
a55c9b6a88
added no_proxy handler - fixes #1318
...
- handle no_proxy directive when building stream context
- using CIDR matching from Zend library
- uses parts of code provided courtesy of @hoffman
11 years ago
Jordi Boggiano
81b2b84112
Clean up git env vars consistently
11 years ago
Jordi Boggiano
48b6e8cd21
Always clear git env vars
11 years ago
Jordi Boggiano
65dae83ee6
Trim output before splitting lines to avoid blank entries, closes #1978
11 years ago
Jordi Boggiano
ca69917969
Merge pull request #2008 from phansys/svn-auth
...
Allowed to 5 auth requests in svn before fail
11 years ago
Jordi Boggiano
7aa03410e2
Merge pull request #2015 from jaypea/filedownloader_basicauth
...
allow FileDownloader to use username:password@ info when downloading
11 years ago
Jordi Boggiano
f79c4e4309
Detect safe_mode and output correct error, closes #2006
11 years ago
Jan Prieser
cc1e10e8ae
allow FileDownloader to use username:password@ info when downloading through https?
11 years ago
Phansys
465d1fdd44
Allowed to 5 auth requests before fail ( 6687743adb/src/Composer/Util/Svn.php (L115)
).
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
jspagnoletti
6687743adb
Added check for SVN WebDAV auth request ( http://subversion.apache.org/docs/api/latest/group__svn__dav__error.html#gada0137a4ffc40251d2fce8ba06ca2e14 , http://svn.apache.org/repos/asf/subversion/trunk/subversion/bindings/javahl/src/org/tigris/subversion/javahl/ErrorCodes.java ).
11 years ago
Jordi Boggiano
f56b985884
Merge pull request #1979 from hason/filesystem
...
Fixed the Filesystem methods for a directory with a name that is a substring of a another directory
11 years ago
Jordi Boggiano
c479a26d71
Add workaround for msysgit failing to handle symlinks on windows, fixes #1048 , fixes #1418
11 years ago
Martin Hasoň
81e41bac4b
Fixed the Filesystem methods for a directory with a name that is a substring of a another directory
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
John Long
8eda0aa8c9
Remove unused variable $valid from ConfigValidator::validate
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
81d55544f7
Fix regex
11 years ago
Jordi Boggiano
5cdf40d165
Output VcsDownloader process commands in -vvv mode
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
8c197d2325
Fix CS and wording, remove lowercased env var, add env var to docs
11 years ago
Alexander Loutsenko
b7e41de607
Workaround when your proxy server fails request with enabled http_proxy_request_fulluri HTTP parameter
11 years ago
Jordi Boggiano
0a561d7bf1
Merge pull request #1773 from hason/filesystem
...
Fix normalization of relative paths
11 years ago
Jordi Boggiano
9a69886a92
Add default http options to stream context, fixes #1774
11 years ago
Martin Hasoň
97f67c09e4
Fix normalization of relative paths
11 years ago
Jordi Boggiano
f744ec16f5
Fix normalization of relative paths going up a few dirs, fixes #1759
11 years ago
Jordi Boggiano
6401b6aa46
Fix handling of protocol paths like phar://
11 years ago
Martin Hasoň
0851ef1afb
Fixed behaviour of Filesystem::findShortestPath[Code] for paths with up-level references
11 years ago
Jordi Boggiano
842155d69e
Use original URL for exceptions, not the one containing authorization, fixes #1722
11 years ago
Jordi Boggiano
61efd2998c
Clear stat cache after calling filesystem commands
11 years ago
Stephan Hochdörfer
df897b42c2
Removed dead statement.
11 years ago
Benjamin Eberlei
882ce1b39f
[GH-1591] More fixing of Installation on Windows Azure. Renaming between different partitions + xcopy fail, so we need to copyAndRemove() manually.
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.
12 years ago
Stephan Hochdörfer
dcdcf57f3f
Moved 401 handling from ComposerRepository to RemoteFilesystem and
...
displaying the url when asking for the credentials.
12 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.
12 years ago
Jordi Boggiano
1c468e7c02
Fix cs
12 years ago
Markus Tacker
821f57f443
A bug in PHP prevents the headers from correctly beeing sent when a content-type header is present and
...
NOT at the end of the array
https://bugs.php.net/bug.php?id=61548
This updates fixes the array by moving the content-type header to the end
12 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
e43d0b5a5b
Allow for "proprietary" as license identifier
12 years ago
Jordi Boggiano
27898c4c31
Suppress errors from mkdir calls that are checked for failure
12 years ago
Jordi Boggiano
1dd7700fc2
Capture output of the rm command
12 years ago
Pascal Borreli
46bbf83778
Fixed typos
12 years ago
Christoph
c7c55915f8
do not output the xcopy summary
12 years ago
Jordi Boggiano
514a3cde77
CS fixes
12 years ago
Galymzhan
69f2230a4c
add public method Filesystem#size
12 years ago
Jordi Boggiano
b8da471f9a
Clarify transport exception for 403s, fixes #1416
12 years ago
Jordi Boggiano
308e2ff4cb
Add support for headers as strings to avoid regressions, refs #1387
12 years ago
Benjamin Eberlei
fbf9a27132
Works on Linux when proc_open misses
12 years ago
Benjamin Eberlei
cd7db1861d
Remove reliance on proc_open in Filesystem#rename()
12 years ago
Benjamin Eberlei
d26932cc7e
Fallback to PHP early if proc_open not allowed.
12 years ago
Jordi Boggiano
25554e08fe
Always read out warnings from the ValidatingArrayLoader
12 years ago
Igor Wiedler
4959c2bdc6
Replace references of a11n with a12n where appropriate
...
Authorization => Authentication.
12 years ago
Jordi Boggiano
967c771b26
Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches
12 years ago
Jordi Boggiano
4b531771bd
Add validators for package links and minimum-stability
12 years ago
Pascal Borreli
83fd3967f0
Fixed PHPDoc
12 years ago
Jordi Boggiano
cd284733ef
Fix proxy scheme concatenation, fixes #1250
12 years ago
Jordi Boggiano
e887f6cea9
Fix CS
12 years ago
Jordi Boggiano
bebd1ce9c7
Always check for OAuth token in git config, fixes #1243
12 years ago
Jordi Boggiano
76663cf21e
Avoid following the URL to the authorization that was just created, fixes #1238
12 years ago
Jordi Boggiano
31a1bd2c39
Remove output if the token can be fetched automatically
12 years ago
Jordi Boggiano
7aab7c6297
Fix StreamContextFactory tests
12 years ago
Jordi Boggiano
39e69a3b12
Refactor OAuth acquisition code to generalize it
12 years ago
Nikita Baksalyar
8f0f1e3aac
Fixed an issue with HTTP proxy and PHP 5.4
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
ee0cd07468
CS fixes
12 years ago
Jordi Boggiano
852c369575
Improve error reporting on downloads and copies, refs #1228
12 years ago
Jordi Boggiano
b3077bc4bc
Merge pull request #1177 from sandermarechal/stream-context
...
Allow setting stream context options
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
c7a13893c7
Merge remote-tracking branch 'mheleniak/rename_reliability'
12 years ago
Johannes M. Schmitt
0ddafdbd7e
fixed return
12 years ago
Johannes M. Schmitt
7ff550e4a6
fixed some bugs in the validator
12 years ago
Johannes M. Schmitt
4e769e1100
moved some code to a dedicated class
12 years ago
Mateusz Heleniak
91fc635ca5
better rename reliability on Windows - a workaround for random "Access denied" errors
12 years ago
Jordi Boggiano
ef637c8f1a
CS fixes
12 years ago
Jordi Boggiano
a54bf6269e
Improve error messages when network failures occur
12 years ago
Jordi Boggiano
730c76ef85
Merge pull request #940 from schmittjoh/renameError
...
fixes rename bug (closes #900 )
12 years ago
Johannes M. Schmitt
3db8419569
removed reference to exec
12 years ago
Johannes M. Schmitt
e3a93d5c84
switched to use the ProcessExecutor utility class
12 years ago
Johannes M. Schmitt
9f150b1c1e
fixes a bug when root package has a 'files' autoload entry
12 years ago
Johannes M. Schmitt
2a6b12fb65
fixes rename bug ( closes #900 )
12 years ago
WanWizard
e24226162d
fixed getContext() choking on empty HTTP_PROXY environment variable
...
Signed-off-by: WanWizard <wanwizard@wanwizard.eu>
12 years ago
Ismael Ambrosi
b368031657
Fixed typos
12 years ago
Jordi Boggiano
66e9dcddf4
CS fixes
12 years ago
Ph3nol
c64d7b7dc7
PHP doc return tag added to SpdxLicenseIdentifier class method
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
Gordon Schmidt
589dffbfbb
changed string to match authorization errors
12 years ago
Jordi Boggiano
c440b4594a
More PSR-2 goodness
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
12 years ago
Tom Klingenberg
58a8ff80e3
Cont. code simplification & better tests.
12 years ago
Jordi Boggiano
fd38971777
Fix CS & simplify code
12 years ago
Tom Klingenberg
74ca58bcb6
Use of SPDX license identifiers.
12 years ago
Jordi Boggiano
c754f96677
Removed last password/username from IOInterface
12 years ago
Jordi Boggiano
072f4397a0
Fix default options handling in StreamContextFactory
12 years ago
Maxim Chernyshev
5294cb222c
Precious community feedback-based refactoring
12 years ago
Maxim Chernyshev
1ae0a1b7af
Follow-up coding standard fixes
12 years ago
Maxim Chernyshev
37476eb61f
Fixed indentation
12 years ago
Maxim Chernyshev
8918551f29
Simplified proxy port determination and passed tests
12 years ago
Maxim Chernyshev
2ca50a1ef3
Merged in upstream
12 years ago
Maxim Chernyshev
419a1cedf0
Proxy credentials are now passed as part of HTTP headers
12 years ago
Danny Berger
e7ba0c38a8
Add default http(s) ports to proxy configuration if they are missing.
12 years ago
Jordi Boggiano
5c5f87008f
Report proper error if a write fails instead of saying the download failed
12 years ago
Jordi Boggiano
5c644552b2
Warn users about having scream enabled, fixes #543
12 years ago
Jordi Boggiano
9371253e38
Fail hard if a package can not be properly removed
12 years ago
Jordi Boggiano
9ed06f8853
Output svn output to user in verbose mode
12 years ago
Jordi Boggiano
7285536737
Fix exception handling
12 years ago
Jordi Boggiano
1e2223bcdb
Add note for improvement of Svn util
12 years ago
Jordi Boggiano
5a7abfd84f
Remove code duplication in Svn classes
12 years ago
Jordi Boggiano
862d4af274
Cache credentials by default since that's the default svn behavior
12 years ago
Jordi Boggiano
8fb9c4bf3b
Svn related coding style/consistency fixes and minor improvements
12 years ago
Jordi Boggiano
da649fdc79
Remove unused pipe argument
12 years ago
Jordi Boggiano
ab9fc59d30
Add missing license headers
12 years ago
Jordi Boggiano
6c2b78a669
Merge remote-tracking branch 'till/svn-auth-reloaded'
12 years ago
Jordi Boggiano
5f30206c69
Merge remote-tracking branch 'hason/classloader'
12 years ago
till
c6653f0711
* fix up CS suggestions from stof/seldaek
12 years ago
Martin Hasoň
36d9513d7b
Changed parameter name in Filesystem::findShortestPath
12 years ago
till
0d6297f235
* add 'doAuthDance()' to allow code reuse from SvnDownloader and SvnDriver
12 years ago
till
c6566825ad
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
12 years ago
till
17f90f56eb
* move helper functions to util class
12 years ago
Martin Hasoň
1f8c9eeb6c
Added parameter $inDirectory to method Filesystem::findShortestPath
12 years ago
Mateusz Heleniak
2a9e8350b0
fixed GitDriver - set correct working directory for cli commands
12 years ago
Jordi Boggiano
81fdd790f2
Notes on HTTP_PROXY env var
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
51447074c2
Fix wording & co
12 years ago
Jordi Boggiano
a5c2c6c07e
Merge remote-tracking branch 'biozshock/issue225'
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
13 years ago
Jordi Boggiano
edf93f1fcc
Fix test & behavior
13 years ago
Jordi Boggiano
89f69256f8
Merge remote-tracking branch 'kostiklv/console-overwrite-fix'
13 years ago
Jordi Boggiano
a4f9e03d35
Add workaround for PHP bug #61336
13 years ago
Jordi Boggiano
3e22084ea4
Overhaul VcsDrivers, introduce TransportException for remote filesystem errors
13 years ago
Jordi Boggiano
8d087f2b2b
Fixes to Filesystem class, avoid removing non-existing dirs and clear stat cache for safety
13 years ago
Konstantin Tjuterev
0b7896cdad
Simplified & fixed ConsoleIO->overwrite, corrected output when downloading with progress
13 years ago
Jordi Boggiano
9bcea6f485
Merge remote-tracking branch 'hason/filedownloader'
13 years ago
Martin Hasoň
303dae7968
Fixed typos and bugs in the RemoteFilesystem class
13 years ago
Dave Marshall
cb3548c64c
Reset the errorOutput before attempting to run command
13 years ago
Dave Marshall
c2421db7d9
Add stderr to exceptions for GitDownloader
13 years ago
Jordi Boggiano
8ba76fe6d2
Boost default timeout to 5min
13 years ago
Martin Hasoň
56c0e511da
Added support for change the process timeout
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
Jordi Boggiano
256bfedea1
Merge remote-tracking branch 'jalliot/proxy2'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
src/Composer/Repository/PearRepository.php
13 years ago
François Pluchino
9638247e44
Move to Util Class
13 years ago
Jordi Boggiano
5da021ffa7
Moved Filesystem to base Util namespace
13 years ago
Artem Lopata
7d994b5de4
Added ErrorHandler for handling E_NOTICE, E_WARNING, E_ERROR
13 years ago
Jordi Boggiano
702d415472
Fix usage of the ProcessExecutor
13 years ago
Jordan Alliot
b4d87af959
Changed array_merge to array_merge_recursive
13 years ago
Jordan Alliot
468eb0ed8d
Merge default options after buildind proxy one
13 years ago
Jordan Alliot
054faef5eb
New context at each call and possibility to add more options and params to the context
13 years ago
Jordan Alliot
9c27e38654
Moved proxy handling to a new class so that it can be reused in other parts of Composer
13 years ago
Jordi Boggiano
e218b811e0
Convert static Process into an executor that can be injected
13 years ago
digitalkaoz
897ff9126d
seperate class for Process, using this one all over the place
13 years ago