Update libraries, and Guzzle to 6.2#28063
Conversation
|
First fail: With a bit of luck if all our code uses the Http\Client wrapper, we only need to adjust that one. |
|
Guide here: https://github.com/guzzle/guzzle/blob/master/UPGRADING.md
|
|
Needs retesting:
|
|
|
unit tests passed for me locally, but I expected that some of these API changes aren't covered.
|
|
Took me a while to adjust the integration test code to work with Guzzle v6, especially because none of it is properly wrapped with utility functions. Let's see, integration tests should go further now. @SergioBertolinSG |
|
|
|
added more fixes, apparently you can only read the body once. |
|
Added more fixes, also in core for "POST". Federated sharing integration tests passed locally, so it looks promising.
|
|
Great, CI passed! Now still need to manually test everything I listed above. |
In general we should anyway unbundle these external storages: #20116 |
|
did some tests with federated shares and all seemed to work fine:
|
|
|
@felixboehm @DeepDiver1975 I think this PR is a good example of what is likely too risky to put in a maintenance release, considering that many market apps might also be using the old Guzzle API. |
|
Moving to backlog for now. @SergioBertolinSG spoke about moving the Guzzle stuff into a utility wrapper, in which case we'll only need to adjust the wrapper and not all the tests like I did here. |
|
@PVince81 the new dropbox app also requires |
|
@felixboehm @pmaier1 @DeepDiver1975 looks like updating the Guzzle lib is becoming more pressing, see previous comment... Also see #28063 (comment). |
|
The updated GDrive SDK also requires Guzzle v6: owncloud/files_external_gdrive#4 |
|
Hey so I can work with Guzzle 5.3 for the new dropbox app but in that way I'll have to manually manage the dependency of the app by committing vendor (3rd party) files in the repo which I dont think is a good practise Thoughts @PVince81 @DeepDiver1975 ? |
|
@Hemant-Mann does this even work with Guzzle 5.3 ? Can you have a quick try ? Note that the APIs are not compatible so if the flysystem adapter has no version compatible with Guzzle 5.3, might need to hack that one too... ugly... |
|
@PVince81 The Guzzle dependency is in the SDK not in flysystem |
6d2f9b3 to
db558bb
Compare
|
Rebased and solved conflicts. I didn't rerun all tests, so let's see if all still passes. The next step will be to extract the bits that are compatible with Guzzle v5.3 and merge them to master, so we don't need to change these again once switching to Guzzle v6. |
|
argh... of course... with Jenkins down I won't get test results |
|
hmm seems it wouldn't be that easy as we don't have GuzzleHttp\Psr7\Request with the old Guzzle, so would need to use yet another approach which works with both versions |
db558bb to
7e723df
Compare
7e723df to
bcfafe7
Compare
|
another fix: WebdavHelper used the obsolete Let's hope all CI will pass this time. |
|
superseded by #29211 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Update Guzzle to 6.2, and also other libraries (deleted and regenerated composer.lock)
Expecting many problems as there were API changes in that lib.
Related Issue
Motivation and Context
Guzzle 5.3 is outdated, needs update.
Also some libs used by apps will need Guzzle > 6.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: