Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In D7, the views listing used tokens for the enable/disable AJAX links. Those got lost somehow.
Comment | File | Size | Author |
---|---|---|---|
#11 | 1798296-23.patch | 4.91 KB | damiankloip |
#11 | interdiff-1798296-23.txt | 706 bytes | damiankloip |
#9 | 2042487-9.patch | 4.9 KB | damiankloip |
#9 | interdiff-2042487-9.txt | 2.89 KB | damiankloip |
#6 | vdc-2042487-6.patch | 3.23 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettHere we go.
Comment #2
dawehnerOther places like the OverlayController throw a 403 exception if the token is not valid.
Comment #3
damiankloip CreditAttribution: damiankloip commentedAs dawehner mentioned above, I tihnk we should throw an error code response here.
Otherwise this is looking pretty good really.
Comment #4
dawehnerSo, we agree.
Comment #5
damiankloip CreditAttribution: damiankloip commentedAbsolutely
Comment #6
tim.plunkettIndubitably
Comment #7
dawehnerLet's also describe when this exception is thrown.
Just as a side-node, we could already use the urlgenerator->generate() method directly. (Feel free to open a new issue for it)
Comment #8
tstoecklerPretty sure this is critical, as it's security-related. (And also a regression, apparently.)
Comment #9
damiankloip CreditAttribution: damiankloip commentedLet's do this then.
Comment #11
damiankloip CreditAttribution: damiankloip commentedOops
Comment #12
dawehnerIt seems to be that the patch is missing a test which ensures that enable/disable via UI actually works.
Comment #13
damiankloip CreditAttribution: damiankloip commentedDoesn't Drupal\views_ui\Tests\DefaultViewsTest already test this stuff? That enables and disables views in the UI. That test should probably be broken out somehow, but not here.
Comment #14
dawehnerOH i am sorry, and confused this up with the other test class called "DefaultViewsTest"...
Comment #15
damiankloip CreditAttribution: damiankloip commentedYeah, we named that one really really well! :)
Comment #16
catchCommitted/pushed to 8.x, thanks!