- Issue created by @kim.pepper
- Merge request !4575Issue #3380379: Create content disposition filename extractor β (Closed) created by kim.pepper
- last update
over 1 year ago 29,937 pass, 1 fail - Status changed to Needs review
over 1 year ago 6:21am 10 August 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
- Creates the content disposition filename parser
- Replaces usage in REST module
- Replaces usage in JSON API module
- last update
over 1 year ago 29,936 pass, 2 fail - last update
over 1 year ago 29,958 pass - Status changed to RTBC
over 1 year ago 5:23pm 16 August 2023 - πΊπΈUnited States smustgrave
Seems like a good change.
CR reads well also and includes removed functions. - last update
over 1 year ago 29,941 pass, 2 fail - last update
over 1 year ago 30,047 pass - last update
over 1 year ago 30,051 pass - last update
about 1 year ago 30,056 pass - last update
about 1 year ago 30,058 pass - last update
about 1 year ago 30,060 pass - last update
about 1 year ago 30,060 pass - π³πΏNew Zealand quietone
I'm triaging RTBC issues β . I re-read the IS and the comments. I didn't find any unanswered questions.
I skimmed the MR. At first I thought that the constant REQUEST_HEADER_FILENAME_REGEX would need to be renamed because of the coding standards for Constants β . That states that "Module-defined constant names should also be prefixed by an uppercase spelling of the module that defines them." But the I searched core and found it used in two other files, one in the files module and one in jsonapi. It would be better to keep the name the same for now and fix it later.
I think the CR could use a more succinct title and before/after code samples.
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
"Module-defined constant names should also be prefixed by an uppercase spelling of the module that defines them."
That makes sense if it's in a
*.module
file, but this will always be called with\Drupal\file\Upload\ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX
which clearly shows the module and the class it comes from.In regards to the CR, I wasn't sure if this issue actually justified one. I don't think there is a before and after needed as no one is calling this code. Its an internal protected method that is duplicated in two places:
TemporaryJsonapiFileFieldUploader
andFileUploadResource
. This issue removes the duplication into shared code. - last update
about 1 year ago 30,100 pass 19:20 15:59 Running- last update
about 1 year ago 30,135 pass - last update
about 1 year ago 30,135 pass, 2 fail - last update
about 1 year ago 30,146 pass - last update
about 1 year ago 30,146 pass - last update
about 1 year ago 30,148 pass - last update
about 1 year ago 30,157 pass - π³πΏNew Zealand quietone
@kim.pepper, thanks for the explanations. I do see that I must read more carefully!
- last update
about 1 year ago 30,161 pass - last update
about 1 year ago 30,161 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,205 pass - last update
about 1 year ago 30,205 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Blocking a critical π [PP-4] Unify file upload logic of REST and JSON:API Postponed therefore this is also critical.
- last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,360 pass - last update
about 1 year ago 30,371 pass - last update
about 1 year ago 30,379 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,388 pass, 1 fail - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,410 pass, 2 fail - last update
about 1 year ago 30,413 pass, 2 fail - last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,436 pass - last update
about 1 year ago Custom Commands Failed - Status changed to Needs review
about 1 year ago 12:29am 25 October 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
I changed this to a static method, as we are only using the
FileSystem
dependency for thebasename
method. And since we are just parsing a filename in content disposition header, we don't need to support StreamWrappers. Therefore the standard PHPbasename
function should be fine.One less service to inject!
- last update
about 1 year ago 30,434 pass, 1 fail - last update
about 1 year ago 30,442 pass - Status changed to RTBC
about 1 year ago 12:47pm 26 October 2023 - πΊπΈUnited States smustgrave
Seems change to static method is fine. Not sure if it should be noted in the CR or if that matters.
19:19 17:36 Running- last update
about 1 year ago 30,470 pass - last update
about 1 year ago 30,487 pass - last update
about 1 year ago 30,489 pass - last update
about 1 year ago 30,492 pass - last update
about 1 year ago 30,492 pass - last update
about 1 year ago 30,499 pass - last update
about 1 year ago 30,516 pass, 2 fail - last update
about 1 year ago 30,525 pass - Status changed to Needs work
about 1 year ago 1:34am 13 November 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Needs a re-roll after π Create a InputStreamFileWriter for writing the input stream to a file RTBC
- Status changed to RTBC
about 1 year ago 1:49am 13 November 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Re-rolled
-
larowlan β
committed 56b614e7 on 11.x
Issue #3380379 by kim.pepper, smustgrave, quietone: Create content...
-
larowlan β
committed 56b614e7 on 11.x
- Status changed to Fixed
about 1 year ago 2:52am 13 November 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed and pushed to 11.x
Published change record - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Updated the change record to reflect this uses a static now and not a service
Automatically closed - issue fixed for 2 weeks with no activity.