[development] Fun menu system bug

Neil Drumm drumm at delocalizedham.com
Wed Jan 11 14:02:59 UTC 2006


1. Alias 'blog' or other system path to something else.
2. Go to menu admin.
3. Get one more row for the blog item in the db every reload.
(and it is even handled somewhat randomly, seemingly depending on 
surrounding menu items)

I think I've traced this to the one line of code added with 
http://drupal.org/node/9477. The blog menu item is never found for 
de-duping since it is never searched for, so the menu system thinks it 
needs to make a new one every time.

Possible solutions:

- Revert the patch.
- Check if the un-normalized path is in the 'path index' array before 
normalizing.
- Disallow aliasing system paths.

Anyone have other good ideas?

-- 
Neil Drumm
http://delocalizedham.com/


More information about the development mailing list