136 Commits (cac2d076b1d92be641ddb6a0476a37ddd57f4ee9)

Author SHA1 Message Date
Jordi Boggiano cac2d076b1
Fix corrupt caches for svn driver, fixes #10751 2 years ago
Jordi Boggiano 29513c15da
Tweak cache behavior for SvnDriver & co to ensure null returns, refs #10681 2 years ago
nargil07 986a260d1c
Correction the function getComposerInformation in SvnDriver.php. (#10681)
Sometimes the getBaseComposerInformation had an exception so we write in the cache a string value but the funtion want to return null or Array value.
Now we write a empty string value if it happened
2 years ago
Stephan bd89a67398
SvnDriver: buildIdentifier must be of type int, string given (#10646) 2 years ago
Jordi Boggiano bbf2e94579
Fix a few type errors, update baseline (2170, 104) 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 7abc8da7d3
Add more types 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 years ago
Stephan f5ffedfe60
Fix VcsDrivers initialization of tags and branches, and VcsRepository swallowing exceptions (#10319)
* Drivers: avoid early initialize of tags and branches

* VcsRepository: do not continue if fetching root information fails because of unexpected exceptions

Also rethrow 5XX exception in addition to select 4XX exceptions
3 years ago
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 3 years ago
Jordi Boggiano 01d734125c
Add more type info 3 years ago
Jordi Boggiano 332c46af8b
Merge pull request from GHSA-h5h8-pc6h-jvvx
* Fix external process calls to avoid user input being able to pass extra parameters

* Tweak some fixes
3 years ago
Simon Berger 2223b93efd Several small code improvements 4 years ago
Simon Berger 80d71ccb3f Merged isset, unset and str_replace calls 4 years ago
Simon Berger cda6e8bea6 Removed unnecessary property initialization or declaration 4 years ago
Jordi Boggiano c3db4614c9
Also remove credentials from cache dirs in git/svn drivers, fixes #7439, refs #9155 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano 95840a0ab9 Remove useless curly braces around svn args 6 years ago
Jordi Boggiano bf125295df Fix escaping of URLs in Perforce and Subversion drivers 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Markus Staab af3783b5f4 properly cache when a branch in a certain revision does not contain a composer.json
this prevents requesting/trying to get the composer.json over and over again even if no commits happend

Closes #7156
6 years ago
Markus Staab 9bee2ca28e make sure we only cache resources which contain a svn revision
like we do in the VCS driver.

Closes #7158
6 years ago
Markus Staab 71d058b97b refactored "svn --version" calls into a single place, closes #7152
this saves a lot of process-spawning as we re-use the result of a process started once.
6 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Bernhard Froehlich 70314f3570 Fix Repository support for Subversion 1.8.x where the output of svn info
has changed.

1.7.22
svn: E170001: Unable to connect to a repository at URL 'https://svswdms02/dashboard'
svn: E170001: OPTIONS of 'https://svswdms02/dashboard': authorization failed: Could not authenticate to server: rejected Digest challenge (https://svswdms02)

1.8.17
svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option
svn: E215004: Unable to connect to a repository at URL 'https://svswdms02/dashboard'
svn: E215004: No more credentials or we tried too many times.
Authentication failed
7 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 d70dfd2df3 revert style changes 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 2b7b605839 Skip empty time values 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Bastian Hofmann f8023cffdf renamed cache-credentials to svn-cache-credentials 10 years ago
Bastian Hofmann 204fc207fa Moved config option to not save subversion credentials to repository configuration, added documentation. 10 years ago
Jordi Boggiano 89ec322929 Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json' 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
schmkr 8dd6b052ce Updating SvnDriver trunk revision check
Not checking revision of composer.json, but from its parent directory.

See composer/composer#2849
10 years ago
Jordi Boggiano c96dedd19c Merge pull request #2268 from schmkr/svnDriver-trunkPath-improvements
Improved the handling of trunkPath
10 years ago
Jordi Boggiano 432ace33d4 Clean up svn environment to fix OSX issues, fixes #2708, refs #2146 10 years ago
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 11 years ago
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 11 years ago
schmkr c4d7347ec5 Fixed a coding style issue
Missing a space between if and (
11 years ago
schmkr 652715f4c2 Improved the handling of trunkPath
- $this->baseUrl is only used if $this->trunkPath === false, otherwise
we will use $this->baseUrl with $this->trunkPath.
- scanning through trunkPath will now look for composer.json file
instead of a path that matches $this->trunkPath, beacuse checking
against the latter failed with deeper trunkPaths
- $this->rootIdentifier is now 'trunk' no matter how deep
$this->trunkPath is (with deeper trunkPaths, the name became something
like "dev-trunk-devel-team-packages-package"
11 years ago
Jordi Boggiano 2bf90b544a Fix parsing of trunk in SvnDriver, fixes composer/satis#88 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Andrey Utkin 28c219311c Rename module-path to package-path 11 years ago