- Issue created by @kim.pepper
- Merge request !4847Issue #3389016: Move file upload lock handling to FileUploadHandler β (Closed) created by kim.pepper
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - last update
about 1 year ago 30,169 pass - Status changed to Needs review
about 1 year ago 4:50am 22 September 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Changed title from 'move' to 'add' since we aren't moving in this issue.
- last update
about 1 year ago 30,169 pass - Status changed to Needs work
about 1 year ago 1:42pm 22 September 2023 - πΊπΈUnited States smustgrave
Change looks good and is all green. The CR could use some updates though.
Thanks!
- Status changed to Needs review
about 1 year ago 1:18am 26 September 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Updated change record
- Status changed to RTBC
about 1 year ago 2:41pm 26 September 2023 - last update
about 1 year ago 30,364 pass - First commit to issue fork.
- last update
about 1 year ago 30,364 pass - last update
about 1 year ago CI error - last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,380 pass - last update
about 1 year ago 30,378 pass - last update
about 1 year ago 30,383 pass - last update
about 1 year ago 30,393 pass 23:52 18:16 Running- last update
about 1 year ago 30,398 pass - last update
about 1 year ago 30,414 pass - last update
about 1 year ago 30,418 pass - last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,427 pass - Status changed to Needs work
about 1 year ago 2:38am 24 October 2023 - π³πΏNew Zealand quietone
I'm triaging RTBC issues β . I read the IS and the comments. I didn't find any unanswered questions.
But this needs to be rebased.
- last update
about 1 year ago 30,435 pass - Status changed to RTBC
about 1 year ago 3:38am 24 October 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Re-rolled. Back to RTBC
- Status changed to Postponed
about 1 year ago 3:45am 24 October 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
I think we should postpone this on π Make CKEditor5ImageController reuse FileUploadHandler Active so we have an example of moving the locking rather just adding it as we do here.
- Status changed to Active
11 months ago 1:20am 22 December 2023 - Status changed to Needs review
11 months ago 8:46pm 25 December 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Rebased on 11.x
- Status changed to Needs work
11 months ago 9:33pm 26 December 2023 - πΊπΈUnited States smustgrave
Seems to have failing tests, reran but still failed.
- Status changed to Needs review
11 months ago 2:55am 27 December 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Needed to set
$throws
toFALSE
after the change in π Create an UploadedFile validator and deprecate error checking methods on UploadedFileInterface RTBC - Status changed to RTBC
11 months ago 4:35am 27 December 2023 - last update
11 months ago 25,953 pass, 1,812 fail - last update
11 months ago 25,919 pass, 1,812 fail - last update
11 months ago 25,905 pass, 1,821 fail - last update
11 months ago 25,900 pass, 1,813 fail - last update
11 months ago 25,927 pass, 1,815 fail - last update
11 months ago 25,971 pass, 1,826 fail - last update
11 months ago 26,017 pass, 1,824 fail - Status changed to Needs work
10 months ago 8:11am 31 January 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Left some comments on the MR
- Status changed to Needs review
10 months ago 10:17am 1 February 2024 - Status changed to RTBC
10 months ago 3:57pm 2 February 2024 - πΊπΈUnited States bkline Virginia
@trigger_error('Calling ' . __METHOD__ . '() without the $lock argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3389017', E_USER_DEPRECATED);
I don't think this deprecation message means what it says, which is that calls to the
FileUploadHandler
constructor will be required to omit the$lock
argument in drupal:11.0.0. There are a number of spots like this in the patch.Perhaps you meant "prohibited" or "prevented" where you have "required"?
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
#19 No it's correct as it is. We are adding a new
$lock
dependency, which will throw a deprecation warning if it's not provided in 10.3.0, and as a BC layer, we look up the service using\Drupal::service()
. But in Drupal 11.0.0 we remove this BC layer and it will throw an error if it's not provided. - πΊπΈUnited States bkline Virginia
@kim.pepper Your description in #20 matches what I assumed you meant the deprecation message to convey, but that's not what it actually says. If you read its language carefully, you'll realize that "Calling" is the subject of both verbs, so parsed correctly, the meaning is as follows:
"Calling __construct() without the $lock argument is deprecated in drupal:10.3.0."
and
"Calling __construct() without the $lock argument is required in drupal:11.0.0."
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
'Calling ' . __METHOD__ . '() without the $lock argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0' is correct.
- πΊπΈUnited States bkline Virginia
Sigh. Oh, well, at least they're just deprecation messages, so they be gone eventually, along with the incorrect wording. π
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Feel free to open a [Policy, No Patch] issue to suggest changes to the wording. We have a phpcs rule to ensure it matches the official pattern. See https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... β
- Status changed to Fixed
9 months ago 11:58am 2 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
This is a nice improvement to the API.
Committed and pushed 6236d36180 to 11.x and e44ea05058 to 10.3.x. Thanks!
-
alexpott β
committed e44ea050 on 10.3.x
Issue #3389016 by kim.pepper, xjm, larowlan: Add file upload lock...
-
alexpott β
committed e44ea050 on 10.3.x
-
alexpott β
committed 6236d361 on 11.x
Issue #3389016 by kim.pepper, xjm, larowlan: Add file upload lock...
-
alexpott β
committed 6236d361 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.