-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-7485: Skipped files with corrupted filenames when loading and deleting #400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to this over #399 but please work on integration coverage for this case.
Paths stored in the database can be corrupted by performing a query directly on a current connection. Every integration test case contains getDatabaseConnection()
method.
eZ/Publish/API/Repository/Tests/FieldType/ImageIntegrationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/API/Repository/Tests/FieldType/ImageIntegrationTest.php
Outdated
Show resolved
Hide resolved
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
|
||
$contentService->deleteContent($content->getVersionInfo()->getContentInfo()); | ||
|
||
// Expect no League\Flysystem\CorruptedPathDetected thrown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert no assertions are made here (unless I'm mistaken?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assert no assertions are made here (unless I'm mistaken?).
Either there are some implicit assertions performed in the background or we don't have strict config. We'll see how it behaves on a merge up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on IbexaDXP 3.3 commerce.
Proof of concept PR
v3.3
This PR try/catches the
CorruptedPathDetected
exception originating from theflysystem/league
package. Files will be treated as missing.Another idea (Filesystem override #399):
Checklist:
$ composer fix-cs
).@ezsystems/engineering-team
).