Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-74452

Editing Project Roles from user management menu causes 405 Error

    XMLWordPrintable

Details

    Description

      Problem

      Jira encounters an error (HTTP Status 405 - Method Not Allowed) while visiting EditUserProjectRoles!default.jspa page , to add a user to a role of one of the available categories

      Environment

      Jira 9.1 core (v9.1.0#901000-sha1:5ed254e)

      Steps to Reproduce

      • Create 3 project categories
      • Create two projects with different categories from previous step
      • Create two roles
      • Add user 1 to role 1 on project 1
      • Create a second user
      • Add user 2 to role 1 on project 1
      • Visit Administration - users - for user 2 entry ,click on View project roles
      • Click Edit Project Roles
      • Expand the panel that states (The initial view of this screen displays all the projects where the user is a member of one or more project roles. To display more projects on this screen, click the Display Project link and select the project or project category you want to include.)
      • Click on one of the categorized projects and the error appears

      Expected Results

      The administrator will be directed to the hidden entries where they can bulk select the project roles for the user.

      Actual Results

      Jira throws error 405 and doesn't allow the user to continue

       

      Example of Tomcat's access log

      0:0:0:0:0:0:0:1 956x3613x1 XXXXX [12/Oct/2022:15:56:44 +0200] "POST /j910/secure/admin/user/EditUserProjectRoles!refresh.jspa- HTTP/1.1" 405 685 4 "http://localhost:8910/j910/secure/admin/user/EditUserProjectRoles!default.jspa?atl_token=B41J-Z415-BP33-JEF4_27b28643e3017761697d4ba0f736bf2f77d47b9f_lin&name=dummy" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36" "1huwzer"
      

      atlassian-jira.log

      2022-10-12 15:56:44,750+0200 http-nio-8910-exec-3 WARN XXXX 956x3613x1 1huwzer 0:0:0:0:0:0:0:1 /secure/admin/user/EditUserProjectRoles!refresh.jspa [c.a.j.web.dispatcher.JiraWebworkActionDispatcher] Action 'com.atlassian.jira.web.action.admin.roles.EditUserProjectRoles!refresh' does not support 'POST' request method
      

      Workaround

      Add the user manually to the role using the project settings menu - Users and roles

      Notes

      NA

      Attachments

        Issue Links

          Activity

            People

              4e432536cf93 Karol Skwierawski
              f0ea184c9b1c Mohamed Kouki
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: