Project

General

Profile

Actions

Defect #43910

open

Cannot see main page for my project named "autocomplete" (406 error)

Added by Samuel Bizien Filippi about 3 hours ago. Updated about 2 hours ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Projects
Resolution:
Affected version:

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

clipboard-202603261728-v05ie.png (62.8 KB) clipboard-202603261728-v05ie.png Go MAEDA, 2026-03-26 09:28
43910.patch (1005 Bytes) 43910.patch Go MAEDA, 2026-03-26 09:29

Related issues

Related to Redmine - Defect #3602: Project with the identifier of 'new' cannot be viewedClosedEric Davis2009-07-09Actions
Actions #1

Updated by Go MAEDA about 3 hours ago

  • Status changed from New to Confirmed
Actions #2

Updated by Go MAEDA about 3 hours ago

  • Related to Defect #3602: Project with the identifier of 'new' cannot be viewed added
Actions #3

Updated by Go MAEDA about 2 hours ago

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.

Actions

Also available in: Atom PDF