Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Jun 2014 at 14:48 UTC
Updated:
15 Nov 2014 at 22:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xanoComment #2
xanoComment #3
xanoComment #4
kim.pepperThis looks good.
Discussed with Xano in Austin sprint. The ideal solution would be to using constructor injection but that would blow out the scope of this issue. Suggest we create a follow up for that.
Comment #5
kim.pepperComment #6
alexpottLet's postpone this one on #2278403: Remove uses of form_execute_handlers() - since that is suggesting we remove the service altogether.
Comment #7
tim.plunkettYou linked to this issue. Which did you have in mind?
Comment #8
xanoBy what I heard from @chx I *think* @alexpott meant #2282089: [security weakness] Hardwire FormValidator.
Moving back to NR, since the patch does not only change the invocation of validation handlers, but also those of submission handlers.
Comment #9
xano1: drupal_2278403_1.patch queued for re-testing.
Comment #11
alexpottYes I did mean #2282089: [security weakness] Hardwire FormValidator
Comment #12
xanoConsidering the lack of support and activity in that other issue, would you be okay with fixing this issue until #2282089: [security weakness] Hardwire FormValidator can possibly come up with a permanent solution?
Comment #13
alexpottWell can we then wrap this on FormBase like we do in FormBase::errorHandler()
Comment #14
xanoDoes anyone know why #2004244-40: Move entity revision, content translation, validation and field methods to ContentEntityInterface added these lines and the code comments that precede them?
Comment #16
xanoDo we really want to introduce new methods that are temporary anyway? We'd then have to mock the SUT, which works, but isn't the best solution. Setting the global container isn't great either, but at least
UnitTestCasecleans that up nicely.Comment #19
jeroentPatch no longer applied. Created reroll.
Comment #21
xanoRe-roll from #1.
Thanks! Apparently you did not create a proper re-roll. https://www.drupal.org/patch/reroll explains two different methods of doing this. It may be helpful to you.
Comment #22
xanoComment #23
rpayanmRemoved all occurrences. Only function exists.
Comment #24
alexpottCan the change record that announces the replacement of
form_execute_handlersbe linked to this issue for traceability - once this is done it can be set back to rtbc.Comment #25
jeroentLinked this issue to the following change record: drupal_*_form() and form_*() methods are replaced by a form builder service and methods on $form_state
Comment #26
alexpottThis issue is a prioritized change as per #2350615: [policy, no patch] What changes can be accepted during the Drupal 8 beta phase? and it's benefits outweigh any disruption. Committed 29b678c and pushed to 8.0.x. Thanks!