[development] Fun menu system bug

Earl Miles merlin at logrus.com
Wed Jan 11 16:04:14 UTC 2006


Neil Drumm wrote:
> 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?

Aha! I thought I was seeing odd menu duplication, but I couldn't figure out how 
to, heh, duplicate it.


More information about the development mailing list