Closed (fixed)
Project:
Localization server
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2009 at 12:04 UTC
Updated:
8 Feb 2010 at 21:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
int commentedput View in the autocomplete Project textbox.
Comment #2
gábor hojtsyI don't think its the number of results. If you type in "V", "Vi", "Vie" or "Views, those are all fine. if you type in "View", that is a 404. This looks like a menu handling bug to me somehow.
Comment #3
tobiasbright. try it with "export" , "warnings".
Comment #4
gábor hojtsyUhm, should not /autocomplete be unique enough as a path suffix to avoid such issues?
Comment #5
gábor hojtsy@tobiasb: what do you think?
Comment #6
tobiasbNo. perhaps there are other projects, which use /autocomplete. so its better to use somethings in the path, which is unique for this project eg l10n_server/autocomplete.
Comment #7
gábor hojtsyErm, that is why we already use 'translate/projects/autocomplete', aren't we?
Comment #8
tobiasbYes, but we use this 'translate/projects/[module]' for (project)pages
http://localize.drupal.org/translate/projects/views.We need a path which is in the drupal-module-world unique :D. And I believe l10n_server/autocomplete is unique in drupal-module-world.
Comment #9
gábor hojtsy@tobiasb: look, the project is "translate/projects/views", while the autocomplete is "translate/projects/autocomplete/views"; this would admittedly clash with a project named autocomplete, but not with a project named views. We could make it /translate/project-autocomplete or somesuch, but I'm not clear on why would this fix the issue, when we already have a unique path do we?
Comment #10
tobiasbI mean with unique not unique on l.d.o -> unique in the database(menu_...).
Comment #11
gábor hojtsyWhy is the current one not unique in the database / hook_menu / menu_* tables?
Comment #12
tobiasbperhaps a module use also /autocomplete or want use /autocomplete. And then there is a conflict. but with translate/project-autocomplete it is all ok (99% :D).
*add 2 missing paths
Comment #13
gábor hojtsyI'd like to understand the reason for the failure. I'm not confident in running around and modifying stuff without understanding why it fails. We know it generally works for almost arbitrary input.
It works if I enter "vie":
It works if I enter "views":
It does not work (throws 404 error if you enter "view" exactly):
Because autocomplete works with path segments, this means:
First question is why and then we can do a fix where we know we actually fix it.
Comment #14
tobiasbthere are menu items
Comment #15
gábor hojtsyOk, by studying the menu system pattern matching, I see better. I've added one more comment line with this patch and committed: http://drupal.org/cvs?commit=319510
Thanks!
Comment #16
gábor hojtsyAlso deployed to l.d.o.