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.
Follow-up to #2729439: QueryArgsCacheContext should return a special value for ?arg (without value)
Problem/Motivation
Return value could be NULL
after #2729439: QueryArgsCacheContext should return a special value for ?arg (without value)
Proposed resolution
Check result of \Symfony\Component\HttpFoundation\Request::getQueryString()
and convert it to empty string when NULL
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#12 | 2744421-12.patch | 2.78 KB | andypost |
#12 | interdiff.txt | 391 bytes | andypost |
#9 | 2744421-9.patch | 2.82 KB | andypost |
#2 | 2744421-2-testonly.patch | 1.34 KB | andypost |
Comments
Comment #2
andypostComment #3
andypostAnd test+fix
Comment #5
Wim LeersI'd RTBC this, but the first remark in #2738563-21: Headers cache context does not work, also needs test coverage also applies here. I know it's a pre-existing bit of lack of clarity here, but if we're touching this code, we might as well make the code more legible too.
Comment #6
andypostI think this change makes code more readable
Comment #7
andypostComment #8
andypostProper comments
Comment #9
andypostRe-roll after #2746761: QueryArgsCacheContext does not support nested parameters
Comment #10
Wim LeersThis comment is wrong. It's also not helpful. Let's remove it.
Once that is fixed, this is RTBC.
Comment #12
andypostHere's it, bot failures looks unrelated
Comment #13
Wim LeersPerfect, thanks!
Comment #16
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!