Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2014 at 14:13 UTC
Updated:
20 Jul 2026 at 18:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fagoComment #2
fagoI figured that we should handle not existing context arguments better, right now the code fails to include other subsequent arguments if it doesn't exist (as it goes with NULL).
Fixed that by correctly adding in the exception value if no context argument is there.
Comment #4
a.milkovskyExtended the patch for the 'users' case.
Comment #5
fagoWolfgang Ziegler
You need to use this exception value, not just hard-code 'all'. 'all' is the default of views though, so this can be the fallback/default value. Else this looks good.
Comment #6
a.milkovskyFixed
Comment #7
fagoRight - the same issue exists with NULL values of type 'user'.
Meanwhile we have this fix running on a customer site just fine + verified the fix works correctly. -> RTBC.
Comment #8
rivimeyPatch in #6 applies cleanly to 7.x-1.x
Patch looks ok, but I would appreciate another set of eyes on it, as there seems to be a possibility of regressions in custom modules because of slightly changed behaviour. However, I cannot point at any specific reason for caution, so good to go.
Comment #9
japerryThis patch will need to be re-rolled due to #1910608: Ajax + Allow settings: Allowed settings lost on ajax (exposed forms/pager) being committed.
Comment #10
damienmckennaThis wasn't added to 1.11.
Comment #11
a.milkovskyI will re-roll it
Comment #12
a.milkovskyRe-rolled the patch #6
Comment #13
rivimeyPatch from #12 applies cleanly to 7.x-1.x.
I don't feel competent in this case to judge whether the fix is good, but the code looks reasonable.
Only thing to make it better would be some 'simpletest' tests... any takers?
Comment #14
japerryThis looks good to me. Bumping for inclusion in our next feature release.
Comment #15
japerryRe-marking needs review. I re-rolled the last patch because it wouldn't apply anymore.
Comment #16
rivimeyPatch looks good to me.
Comment #17
japerryGreat, tests out ok. Committed.
Comment #19
joaogomes_cd commentedGentlemen, the decision add the following lines of code using md5 with request time and rand():
Means that websites that have views_content module enabled and for some reason the dom_id is not present, will have the cache table be filled with gigabytes of caches in a few days, such as was our case, with aprox. 30GB of caches created in aprox. two weeks. I would strongly advise to roll back these changes. My suggestion is to NOT cache if dom_id is not present and not generate one based on MD5 with the request time and rand().
Comment #21
japerryPer comment #19, I'm reverting this issue for the 1.13 release. Also, it looks like the code causes a regression which was brought up in #2822472: Views content pane ignoring existing view args -- which will need to get tackled in this patch.
Comment #22
damienmckennaThis didn't get into 1.13, maybe it will get into 1.14.
We need to try getting this to RTBC.
Comment #23
damienmckennaComment #24
japerryDrupal 7 is no longer supported, closing.