Patch (to be ported)
Project:
S3 File System
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2022 at 07:59 UTC
Updated:
7 Dec 2023 at 22:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
szantog commentedHmm, I don't know why are the tests failing.. Pls review.
Comment #4
cmlaraComments added.
Main reason for tests failure is that a Guzzle error is now being allowed to make it through without being captured. Maybe that is a root fault inside of AWS (would have to look at the stack) however honestly we really do want to make sure we capture every failure at this point and report it as a failed copy to avoid possible WSOD's so at least a general \Exception remaining is still useful. Drupal core file_system service uses error suppression when calling methods so catching \Exception is not out of place in that regard.
Comment #5
cmlaraForgot to change status.
Comment #6
hugronaphor commentedThis seems to have been merged already?
Comment #7
cmlaraNot yet.
This needs a rebase on top of latest HEAD and the open comments to be addressed.
Comment #8
luizsgpetri commentedHi, I rerolled the patch up to 8.3.3 version.
I wasn't able to create an interdiff file because the previous patch doesn't apply anymore.
I've found out that In some cases the getAwsErrorMessage() method is returns an empty string. Like when we try to use an nonexistent bucket.
So I've added a fallback to it.
All the comments in the previous patch are now resolved but the one related with providing a fallback to the logger parameter. It mentioned that this would be needed because we were in beta, which doesn't seems to be the case anymore.
Comment #9
luizsgpetri commentedComment #10
cmlaraIt’s a “once a BETA release is made, BC measure should be done” which especially applies to Stable since we didn’t mark the class internal it may be being extended.
The simple fallback for this is, when the parameter is null fallback to calling \Drupal::service() to get the logger and raise a deprecation notice.
Comment #12
cmlaraCommitted to 8.x-3.x needs port to 4.x