Project

General

Profile

Actions

Defect #43910

closed

Projects with the identifiers "autocomplete" or "bulk_destroy" cannot perform some operations

Added by Samuel Bizien Filippi 21 days ago. Updated 14 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Projects
Target version:
Resolution:
Fixed
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
43910-v2.patch (1.03 KB) 43910-v2.patch Go MAEDA, 2026-03-30 04:42
43910-v3.patch (1.15 KB) 43910-v3.patch Go MAEDA, 2026-03-30 04:58

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 21 days ago

  • Status changed from New to Confirmed
Actions #2

Updated by Go MAEDA 21 days ago

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

Updated by Go MAEDA 21 days 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 #4

Updated by Samuel Bizien Filippi 20 days ago

Hello,

Thanks for your reactivity !
One of my colleague feared that bulk_destroy could also be a reserved word, based on his reading of https://www.redmine.org/projects/redmine/repository/svn/entry/branches/6.1-stable/config/routes.rb#L144 .

I was not able to test this.

Best regards,

Samuel.

Actions #5

Updated by Go MAEDA 18 days ago

Samuel Bizien Filippi wrote in #note-4:

One of my colleague feared that bulk_destroy could also be a reserved word, based on his reading of https://www.redmine.org/projects/redmine/repository/svn/entry/branches/6.1-stable/config/routes.rb#L144 .

Thank you for pointing it out. I confirmed that Redmine returns a 404 Not Found error when deleting a project whose identifier is "bulk_destroy". This identifier should also be reserved.

Actions #6

Updated by Go MAEDA 18 days ago

I changed the validation of the project identifier so that it runs only when a project is created or when its identifier is updated. Otherwise, it would no longer be possible to update the settings of existing projects that already have identifiers like "autocomplete" or "bulk_destroy".

Actions #7

Updated by Go MAEDA 17 days ago

  • Subject changed from Cannot see main page for my project named "autocomplete" (406 error) to Projects with the identifiers "autocomplete" or "bulk_destroy" cannot perform some operations
  • Target version changed from Candidate for next minor release to 6.0.10

Setting the target version to 6.0.10.

Actions #8

Updated by Go MAEDA 15 days ago

Committed the fix in r24549.

The project identifiers autocomplete and bulk_destroy have been added to the reserved identifiers list, in addition to the existing reserved identifier new. As a result, users can no longer create projects with the identifiers autocomplete, bulk_destroy, or new.

This change does not affect existing projects that already use autocomplete or bulk_destroy as their identifier. It also does not fix the problems those projects already have with some operations, such as viewing the Overview page for an autocomplete project or deleting a bulk_destroy project.

Actions #9

Updated by Go MAEDA 15 days ago

  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
Actions #10

Updated by Go MAEDA 14 days ago

  • Status changed from Resolved to Closed
  • Resolution set to Fixed

Merged the fix into the stable branches in r24553 and r24554.

Actions

Also available in: Atom PDF