- Issue created by @kim.pepper
- Status changed to Postponed
12 months ago 1:22am 21 November 2023 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Found a mismatch in behaviour with the
filename
field on theFile
entity not being updated when we do a rename.I think this is now blocked on ๐ Filename property is not updated when a file is renamed FileUploadResource Active
- Merge request !5487#3401734 Refactor FileUploadResource to use FileUploadHandler โ (Closed) created by kim.pepper
- Status changed to Needs work
12 months ago 3:47am 21 November 2023 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Created a MR that combines ๐ Filename property is not updated when a file is renamed FileUploadResource Active
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
There is a test failure due to a behaviour change. I'm scratching my head to work out why.
Before:
example.php
gets renamed:
example.php => example.php_.txt
After:
example.php
gets rejected because the.php
extension isn't in the allow extensions list. - Status changed to Needs review
7 months ago 1:25am 19 April 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Many thanks to @larowlan for helping resolve the file extensions issues. ๐๐ป๐ฅณ
This is ready for reviews now.
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Changing this to critical as it is a part of ๐ [PP-4] Unify file upload logic of REST and JSON:API Postponed which is critical.
- Status changed to Needs work
7 months ago 11:02am 19 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Added a review to the MR... this is looking lovely.
- ๐ฎ๐ณIndia pradhumanjainOSL
pradhumanjain2311 โ made their first commit to this issueโs fork.
- Status changed to Needs review
7 months ago 7:58am 1 May 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
@alexpott are you happy if we look into your concerns in ๐ Simplify how 'allow all extensions' file upload validation works Active ?
- Status changed to RTBC
7 months ago 8:58am 1 May 2024 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Re-organizing parent meta issue.
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Once this goes in, we can start on ๐ [PP-1] Refactor JSON-API file uploads to use FileUploadHandler Postponed
- Status changed to Needs work
7 months ago 8:42am 2 May 2024 - ๐ฌ๐งUnited Kingdom longwave UK
This looks great, unifying all this is definitely the way to go, but the patch does not apply to 10.3.x/10.4.x so we will need a separate MR.
I'm also in two minds about removing the deprecation in 11.x at this stage. https://www.drupal.org/project/file_upload_options โ does extend this plugin in contrib but only has a beta release and 123 users.
If we do remove the deprecation in 11.x then we will need an 11.x MR with the deprecations removed. Otherwise, the deprecations need updating to 12.x
- Status changed to RTBC
7 months ago 9:11am 2 May 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I think since it is constructor deprecations and not actually covered by our BC promise we should deprecate in 10.x and remove in 11.x. Contrib does not need to override the constructor - they can do what they need in the create method.
Removed deprecations from the 11.x branch and created an 10.4.x branch resolving the conflict.
- Status changed to Needs work
7 months ago 4:24am 3 May 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Couple of deprecations still in the 11.x branch - other than that looks good to me
- Status changed to RTBC
7 months ago 9:31am 3 May 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
removed the deprecated functions from 11.x branch. nice catch @larowlan
- ๐ฌ๐งUnited Kingdom longwave UK
Committed f757b3d and pushed to 11.x. Thanks!
Committed and pushed 8f38f5d839 to 10.4.x and 48c58073ee to 10.3.x. Thanks!
- Status changed to Fixed
7 months ago 4:21pm 3 May 2024 -
longwave โ
committed 48c58073 on 10.3.x
Issue #3401734 by kim.pepper, alexpott, larowlan, pradhumanjain2311:...
-
longwave โ
committed 48c58073 on 10.3.x
-
longwave โ
committed 8f38f5d8 on 10.4.x
Issue #3401734 by kim.pepper, alexpott, larowlan, pradhumanjain2311:...
-
longwave โ
committed 8f38f5d8 on 10.4.x
-
longwave โ
committed f757b3d3 on 11.x
Issue #3401734 by kim.pepper, alexpott, larowlan, pradhumanjain2311:...
-
longwave โ
committed f757b3d3 on 11.x
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Woohoo! ๐ See you in ๐ [PP-1] Refactor JSON-API file uploads to use FileUploadHandler Postponed
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
We left in the method
InputStreamUploadedFile::supportsMoveUploadedFile()
from an approach that we ditched in favour of theInputStreamUploadedFile::validate()
approach. Created ๐ Remove incorrectly added InputStreamUploadedFile::supportsMoveUploadedFile() Active to clean this up. Automatically closed - issue fixed for 2 weeks with no activity.