Defect #43910
openCannot see main page for my project named "autocomplete" (406 error)
Description
Hello,
After creating au project with identifier "autocomplete", loading https://<my-redmine-instance>/projects/autocomplete/ fails with a 406 error ("406 Not Acceptable").
Other pages (/projects/autocomplete/issues/, /projects/autocomplete/news, ...) work without error.
Relevant logs :
mars 23 19:33:01 puma[2142027]: I, [2026-03-23T19:33:01.136871 #2142027] INFO -- : [42168f4a-0ece-439f-b708-93f442edda1a] Started GET "/projects/autocomplete/" for 127.0.0.1 at 2026-03-23 19:33:01 +0100 mars 23 19:33:01 puma[2142027]: I, [2026-03-23T19:33:01.137804 #2142027] INFO -- : [42168f4a-0ece-439f-b708-93f442edda1a] Processing by ProjectsController#autocomplete as HTML mars 23 19:33:01 puma[2142027]: I, [2026-03-23T19:33:01.159232 #2142027] INFO -- : [42168f4a-0ece-439f-b708-93f442edda1a] Current user: test1 (id=4) mars 23 19:33:01 puma[2142027]: I, [2026-03-23T19:33:01.160136 #2142027] INFO -- : [42168f4a-0ece-439f-b708-93f442edda1a] Completed 406 Not Acceptable in 22ms (ActiveRecord: 7.4ms | Allocations: 5409) mars 23 19:33:01 puma[2142027]: F, [2026-03-23T19:33:01.160499 #2142027] FATAL -- : [42168f4a-0ece-439f-b708-93f442edda1a] mars 23 19:33:01 puma[2142027]: [42168f4a-0ece-439f-b708-93f442edda1a] ActionController::UnknownFormat (ActionController::UnknownFormat): mars 23 19:33:01 puma[2142027]: [42168f4a-0ece-439f-b708-93f442edda1a] mars 23 19:33:01 puma[2142027]: [42168f4a-0ece-439f-b708-93f442edda1a] app/controllers/projects_controller.rb:87:in `autocomplete' mars 23 19:33:01 puma[2142027]: [42168f4a-0ece-439f-b708-93f442edda1a] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Redmine version: 5.0.4-5+deb12u1 (installed via package from Debian repository on Debian Bookworm).
Database version: postgresql 17
Ruby version: 3.1
Files
Related issues
Updated by Go MAEDA about 3 hours ago
- Related to Defect #3602: Project with the identifier of 'new' cannot be viewed added
Updated by Go MAEDA about 2 hours ago
- File clipboard-202603261728-v05ie.png clipboard-202603261728-v05ie.png added
- File 43910.patch 43910.patch added
- Category changed from Project settings to Projects
- Target version set to Candidate for next minor release
Thank you for reporting the issue.
I wrote a patch for this issue. With this patch applied, autocomplete is treated as a reserved project identifier, so it is no longer possible to create a project with autocomplete as its identifier.
Currently, accessing /projects/autocomplete results in an error because it matches the existing projects#autocomplete route instead of the normal projects#show route. Because this identifier conflicts with an existing action, autocomplete cannot be used as a project identifier and therefore must be reserved.
