Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2008 at 00:52 UTC
Updated:
27 Aug 2010 at 09:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cburschkaHere is a patch that seems to fix the problem. I hope that hitting the registry an additional time in this place is not a performance drag.
Comment #2
moshe weitzman commentedLooks good to me. Go registry.
Comment #3
webchickLet's get some tests for this behaviour, please, so we don't accidentally re-introduce it.
Comment #4
cburschkaHere is a test that should fail prior the patch and pass with it. I say should because my site still refuses to run tests properly. It's possible that a typo snuck in there, I wrote this "offline".
The test checks both a simple page callback in a separate file, and an access callback like the above.
While looking at the menu.test, I noticed that it really tests only very little of the full API - stuff like wildcards, tokens, returning a boolean in 'access callback' etc. is never done. But that is way out of this patch's scope, and besides I'm really not good at unit tests.
This is not a replacement for patch #1, but an addition to it. This is to allow running the test without the patch applied.
Comment #5
cburschkaI think there is something wrong here, as the testing site should have rejected this last patch which is supposed to introduce a failing test without fixing it. As said, this needs someone with working simpletest to fix.
Comment #6
cburschkaNope, test works as it should. After reinstalling my test site, SimpleTest once again works (I might have been using a pre-final version of the SQLite driver earlier).
The testing patch #4 causes one failed test that disappears when the fix in #1 is added. I don't know why the test-bed disagrees.
Comment #8
webprods commented#1: menu-access-callback-load-337907.patch queued for re-testing.
Comment #9
retester2010 commented#4: test-menu-callback-registry-337907-4.patch queued for re-testing.