- Issue created by @Qusai Taha
- Issue was unassigned.
- Status changed to Needs review
4 months ago 5:47am 18 August 2024 - Merge request !92383468722: Implement the file name sznitization in a separate service โ (Open) created by Qusai Taha
- Status changed to Needs work
4 months ago 1:41pm 18 August 2024 - ๐บ๐ธUnited States smustgrave
MR should be against 11.x
Most likely will have some backwards compatibility impact so will have to deal with that.
- First commit to issue fork.
- Merge request !9255Implement the File Sanitization in a Separate Service to Make it More Reusable โ (Open) created by arunkumark
- ๐ฎ๐ณIndia arunkumark Coimbatore
arunkumark โ changed the visibility of the branch 3468722-implement-the-file-name-sanitization-in-separate-service- to hidden.
- Status changed to Needs review
4 months ago 4:11pm 19 August 2024 - ๐ฎ๐ณIndia arunkumark Coimbatore
As per feedback #4 the branch for 10.x is hidden. Created new PR for 11.x version.
- Status changed to Needs work
4 months ago 1:41am 20 August 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
NW for linting fails.
- Status changed to Needs review
4 months ago 3:06am 20 August 2024 - ๐ฎ๐ณIndia arunkumark Coimbatore
Tested the patch in the local PHPUnit it working fine. Attached screenshot for reference,
The failure might be of ๐ Bump phpstan/phpstan to latest to make daily "updated deps" QA run pass again Fixed . It was tracked on ๐ Updated deps job fails Needs review . Hope there is no action required on the MR.
@kim.pepper please change the status if you have a different opinion.
- Status changed to Needs work
4 months ago 3:13am 20 August 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Don't think those two issues are related. Error is:
------ -------------------------------------------------------------- Line core/modules/file/src/FileSanitizeName.php ------ -------------------------------------------------------------- 79 Call to preg_quote() is missing delimiter / to be effective. 79 Call to preg_quote() is missing delimiter / to be effective. ------ --------------------------------------------------------------
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
You need to add a service alias for
'Drupal\file\FileSanitizeName' => 'file.sanitize_name'
- Status changed to Needs review
4 months ago 10:36am 20 August 2024 - Status changed to Needs work
4 months ago 8:52pm 20 August 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
I think the name
FilenameSanitizer
makes more sense. - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Can you also describe the use case where this would be used outside of the event handler?
- Status changed to Needs review
4 months ago 6:41am 21 August 2024 - ๐ฎ๐ณIndia arunkumark Coimbatore
As per teh suggestion #14 the Filename updated.
use case where this would be used outside of the event handler
If any user wants to change the Filename, there is no need to override the Event subscriber. Instead, they can extend the service class and make their changes.
- Status changed to Needs work
4 months ago 1:07pm 28 August 2024