Jordi Boggiano
fb848d2e07
Code cleanups
9 years ago
Jordi Boggiano
72fae0bf70
Declare CN_match/SNI_server_name only for php <5.6
9 years ago
Jordi Boggiano
449f68deae
Remove dangerous CN_match fallback
9 years ago
Jordi Boggiano
03299ff075
Suggest https in docs where it makes sense, closes #4056
9 years ago
Jordi Boggiano
fc4d94f160
Code clarity and updates from the getcomposer.org installer
9 years ago
Jordi Boggiano
cb53bd04cb
Remove a few instances of RemoteFilesystem that were not needed
9 years ago
Jordi Boggiano
f8dff0867c
Remove --disable-tls/--cafile flags and rely solely on config options plus some wording clarifications
9 years ago
Jordi Boggiano
5d015defb8
Merge remote-tracking branch 'origin/master' into tls-config
9 years ago
Jordi Boggiano
29312be4df
Strict typing fixes
9 years ago
Jordi Boggiano
fbab2bfa17
Move user agent definition to StreamContextFactory so it is available in all contexts
9 years ago
Jordi Boggiano
f084b1e053
Remove duplicate handling of retry-auth-failure option, refs #3765
9 years ago
Jordi Boggiano
020c126c27
Fix CS
9 years ago
Jordi Boggiano
a10bffec0e
Merge remote-tracking branch 'GromNaN/gitlab'
9 years ago
Jordi Boggiano
966a982738
CS fixes
9 years ago
Jérôme Tamarelle
4255db9e31
Allows SSH urls for gitlab and detect the scheme
...
SSH urls uses HTTPS to request the API
9 years ago
Jérôme Tamarelle
ac68a721f4
Merge remote-tracking branch 'composer/master' into gitlab
...
Conflicts:
doc/04-schema.md
src/Composer/Util/RemoteFilesystem.php
9 years ago
Jerome TAMARELLE
6ccc562c0f
Add tests on GitLab class (copied from GitHubTest)
9 years ago
Jerome TAMARELLE
db056b8383
Fix retry authentification on gitlab oauth
9 years ago
Jerome TAMARELLE
211d4632bb
Fix compatibility with PHP 5.3
9 years ago
Jordi Boggiano
58a6d4b7d3
Add comment
9 years ago
David Fuhr
064e1a6d6d
Fix handling of http 400 errors
...
Before 400 errors were silently dropped. This caused composer to store
the returned body (usually some html) in cache. This resulted in later
errors when composer tried to extract this error response as zip.
With this exceptions thrown it handles the error gracefully and falls
back to the next URL provided by the package configuration.
9 years ago
Shawn Tunney
54584e6b0f
Have xcopy overwrite existing files
9 years ago
Rob
c7ed232ef4
Merge pull request #4529 from jeroenseegers/warn-on-commit-reference
...
Generate a warning when a commit reference is used
9 years ago
Jordi Boggiano
8e99cec3e7
Fix ref to findShortestPath
9 years ago
Jordi Boggiano
125dc62fab
Make trigger error visible
9 years ago
Jordi Boggiano
615638c7c3
Simplify bin-compat by removing the nosymlink option, refs #3704
9 years ago
Jordi Boggiano
c9b51a5751
Merge remote-tracking branch 'kocsismate/feature-bin-compat'
9 years ago
Jeroen Seegers
279b5f0156
Drop irrelevant properties from composer_commit-ref.json
9 years ago
Jeroen Seegers
f3dc31839f
Refactor commit-ref validation
...
The require and require-dev arrays have been merged into one and no
longer user private methods/properties to collect warnings.
9 years ago
Jeroen Seegers
73e73c90fb
Generate a warning when a commit reference is used
...
Closes #4485
9 years ago
Rob Bast
b523fc0b7b
ran fixers
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Jordi Boggiano
ae23979dfa
Add validation warning for prs-0/4 definitions without namespace prefix, refs #3202
9 years ago
Samuel ROZE
ead68d3d49
Create the path repository and downloader
9 years ago
Jordi Boggiano
9859859f10
Add comment, fixes #4145
9 years ago
Kocsis Máté
87c16073ec
Merge branch 'master' of https://github.com/composer/composer into feature-bin-compat
9 years ago
Jordi Boggiano
00c26791fa
Merge pull request #4264 from alcohol/use-composer-spdx
...
remove spdx files, introduce external library
9 years ago
Jordi Boggiano
bbf959ac34
Do not retry failures once degraded mode is already enabled
9 years ago
Jordi Boggiano
ff84b32097
Add degraded mode to try and bypass ipv6/gzip issues, refs #4142 , refs #4121
9 years ago
Rob Bast
2553f5f7d4
throw error when file is loaded
9 years ago
Rob Bast
616585e0cc
spdxlicense extends spdxlicenses, add depr error
9 years ago
Rob Bast
5ae9e7fe22
remove spdx files, introduce external library
9 years ago
Jordi Boggiano
e2b2f450dc
Merge pull request #4144 from staabm/patch-2
...
Dropped unnecessary break statements
9 years ago
Jordi Boggiano
9b3e8b963e
Merge pull request #4143 from staabm/patch-1
...
Dropped obsolete condition
9 years ago
Rob Bast
4019f7bb44
Revert "apply a regex solution instead of tokenizer"
...
This reverts commit 33a7305e22c8d4e2ce38586855fd3d4b7b2af3dd.
9 years ago
Rob Bast
b5d286e27b
apply a regex solution instead of tokenizer
9 years ago
Rob Bast
e4118385a0
updated spdx related files
9 years ago
Jordi Boggiano
6a64041055
CS fixes
9 years ago
Andreas Möller
eac5fbdee4
Fix: Remove unused imports
9 years ago
Markus Staab
94a924b702
Dropped unnecessary break statements
...
Next line breaks nevertheless
9 years ago
Markus Staab
a4ad3c2146
Dropped obsolete condition
...
The conditional a few lines above already checks for `bytesMax > 0`
9 years ago
Kunal Mehta
49bd1d773b
Make an invalid package name a publish error, not warning
...
Since invalid names will prevent publishing to packagist, they should
be considered publish errors. If people do not plan on submitting their
package to packagist, they can use the --no-check-publish flag to turn
it into a normal warning again.
9 years ago
gmsantosxl
a060c536bb
Remove extra '/' when findShortestPath $from ends with '/'
9 years ago
gmsantosxl
84c9c30b63
Remove extra '/' when findShortestPath $from is a directory
9 years ago
Jordi Boggiano
1753c275ff
Handle deprecation notices softer
9 years ago
Jordi Boggiano
4d5d524704
Clear stat cache after a git failure as it might have modified the filesystem
9 years ago
Jordi Boggiano
52d290f5f2
trim token just in case and update tests
9 years ago
Jordi Boggiano
41f4451c20
take care of retry-auth-failure:false in case of 403 as well
9 years ago
Jordi Boggiano
e16d53893e
Remove password prompt for github tokens and require the user creates a token themselves
9 years ago
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
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
5b0dc99fec
Reuse github existing tokens instead of failing, fixes #2724
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
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