- Issue created by @DamienMcKenna
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
I think the solution should be that we catch the plugin not found and trigger a deprecation error and carry on.
Webform isn't using it for file validation, its using it for theming.
It probably should use something else, but yes, this is a change in behaviour
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
The code from 10.1
foreach ($validators as $function => $args) { if (function_exists($function)) { array_unshift($args, $file); $errors = array_merge($errors, call_user_func_array($function, $args)); } }
As you can see it silently ignored non existent functions
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
kim.pepper β made their first commit to this issueβs fork.
- Status changed to Needs review
11 months ago 5:16am 21 December 2023 - πΊπΈUnited States DamienMcKenna NH, USA
Is there a cleaner way of doing it than a try/catch block?
- Status changed to Needs work
11 months ago 5:19pm 21 December 2023 - πΊπΈUnited States smustgrave
For the open thread to add a trigger_error, not sure if we can reuse an existing CR since this was covered somewhere else?
- Status changed to Needs review
11 months ago 7:53pm 25 December 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
I think we can add something about passing arbitrary data in the form array under
'#upload_validators'
is deprecated to the existing CR https://www.drupal.org/node/3363700 β . As that CR is published, do we need to do it after this is committed? - Status changed to Needs work
11 months ago 1:38am 27 December 2023 - πΊπΈUnited States smustgrave
Just for consistency can the issue summary be updated to include steps, proposed solution, etc.
- Status changed to Needs review
11 months ago 2:32am 27 December 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Updated the issue summary.
- π¬π§United Kingdom catch
I think given the thing we're deprecating here already doesn't work in 10.2.x, it's fine to update the CR before commit here.
- Status changed to RTBC
11 months ago 4:29pm 30 December 2023 - π¬π§United Kingdom catch
- Status changed to Needs work
11 months ago 4:49pm 30 December 2023 - π¬π§United Kingdom alexpott πͺπΊπ
I think the deprecation message needs to mention the string being used as a plugin ID so that this is easier to debug.
- Status changed to Needs review
11 months ago 5:23pm 30 December 2023 - Status changed to RTBC
11 months ago 8:43pm 1 January 2024 - πΊπΈUnited States smustgrave
Appears feedback has been addressed.
Since this is a regression assumed it's fine that deprecation is 10.2
-
larowlan β
committed bb42fa92 on 10.2.x
Issue #3410126 by kim.pepper, catch, larowlan, DamienMcKenna, alexpott:...
-
larowlan β
committed bb42fa92 on 10.2.x
-
larowlan β
committed bd37e393 on 11.x
Issue #3410126 by kim.pepper, catch, larowlan, DamienMcKenna, alexpott:...
-
larowlan β
committed bd37e393 on 11.x
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and backported to 10.2.x
Verified the CR changes https://www.drupal.org/node/3363700/revisions/view/13228435/13360530 β
Thanks all
- Status changed to Fixed
11 months ago 8:52pm 1 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.