View Issue Details

IDProjectCategoryView StatusLast Update
0037460mantisbtauthenticationpublic2026-10-26 05:12
Reporterc_schmitz Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.28.4 
Target Version2.29.0 
Summary0037460: Adding a note to a read-only issue is denied when "All Projects" is selected, although allowed by the project's threshold
Description

bug_is_readonly() reads $g_bug_readonly_status_threshold for the issue's project, but $g_update_readonly_bug_threshold for the user's currently selected project.

When update_readonly_bug_threshold is overridden at project level, the result therefore depends on the project selector. view.php overrides the current project, so the "Add Note" form is shown, but when the note is submitted, bugnote_add.php -> IssueNoteAddCommand::validate() -> bug_is_readonly() evaluates the threshold for "All Projects" and rejects the note:

APPLICATION ERROR #1103: The action cannot be performed because issue "X" is read-only. (HTTP 403)

If the user selects the issue's project first, the note is added.

Steps To Reproduce

Steps to reproduce:

  1. As administrator, in Manage > Configuration > Workflow Thresholds for All Projects, keep "Update read-only issues" (update_readonly_bug_threshold) at MANAGER.
  2. For project A only, set "Update read-only issues" to REPORTER.
  3. Create a user with DEVELOPER access to project A.
  4. In project A, create an issue and close it.
  5. Log in as the developer and select "All Projects" in the project selector.
  6. Open the closed issue, enter a note and submit it.

Actual result:
APPLICATION ERROR #1103 ... issue is read-only (HTTP 403)

Expected result:
The note is added, as it is when project A is selected.

Additional Information

PR: https://github.com/mantisbt/mantisbt/pull/2297

TagsNo tags attached.

Activities

There are no notes attached to this issue.