Needs work
Project:
Drupal core
Version:
main
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2023 at 23:32 UTC
Updated:
24 Feb 2023 at 23:42 UTC
Jump to comment: Most recent
Marked for removal in #2753681: Move CSRF header token out of REST module so that user module can use it, as well as any contrib module but never removed.
n/a
Remove code.
Review.
None.
None not previously handled in original deprecation.
None.
n/a (?)
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bradjones1Comment #4
smustgrave commentedSeems there were a number of failures.
Comment #5
bradjones1The login controller was still using the old token. I need help determining if this basically re-starts the clock on actually removing this b/c in theory you could break a login that is happening _during_ a site update? That doesn't particularly seem like a strong case to me because lots of changes can mean a really well-timed request might break during an update, if the site is not in maintenance mode.
Comment #6
bradjones1The discussion around this was at #2753681-33: Move CSRF header token out of REST module so that user module can use it, as well as any contrib module however it seems that without updating the login controller the cut-over didn't ever really happen as intended.
Does this mean that we can only change the token used in the login controller now and have to wait for another two minor releases to come out, so the original is out of support?
Comment #7
smustgrave commentedFrom what I can tell (sorry if I'm off) but this token is still in use or potentially in use? So think we would have to deprecate it to be removed in D11.
Comment #8
bradjones1This is the sticky wicket. The initial change would have properly deprecated this if the token were changed at the same time as the BC layer were added. Except, the BC layer was added and the use of the deprecated token did not.
So if we were to use the same deprecation procedure, then the BC layer stays, the token changes, and then in two minor releases (when the older one goes out of support) then the BC layer can be removed.
There's part of me that feels like that's a bit much, but it's the only real way to do this to be completely by the book. It would be nice to get some sort of official ruling on this by a framework maintainer.
Comment #9
smustgrave commentedWould agree with that.