Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67387

"No type prefix: " in "Assign roles:" after updating "Matrix Authorization Strategy" to 3.0

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • matrix-auth-plugin
    • None
    • Jenkins 2.303.3
      Matrix Authorization Strategy 3.0
      JDK 11
      RH 7

      I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
      Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
      "No type prefix:" in red.
      I’ve understood that the new plugin needs adaptations. (https://plugins.jenkins.io/matrix-auth/#releases)
      I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

      With the hint from https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043
      I added 'USER:' before my user entries - that seems to have fixed the problem.

      Some hint on that in the GUI would be really good. (and/or on the version notes https://plugins.jenkins.io/matrix-auth/#releases)

       

      Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
      So the "USER:..." didn't solved it seemingly.

      In home/config.xml I found:

      ...

      In home/config.xml I found:

      ...
         <roleMap type="globalRoles">
       <role name="admin" pattern=".*">
        <permissions>
      ....
      <permission>hudson.model.Hudson.Administer</permission>
      ....
      </permissions>
       <assignedSIDs>
      ...
      <sid>USER:jm044248</sid>
      ....

       

      jm044248 is me - so I would assume, I should have the Admin permissions, but....

       

          [JENKINS-67387] "No type prefix: " in "Assign roles:" after updating "Matrix Authorization Strategy" to 3.0

          Martin Jost created issue -
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
          I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes https://plugins.jenkins.io/matrix-auth/#releases)
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
          So the "USER:..." didn't solved it seemingly.
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
          So the "USER:..." didn't solved it seemingly.
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}
          {{ <roleMap type="globalRoles">}}
          {{ <role name="admin" pattern=".*">}}
          {{ <permissions>}}
          {{....}}
          {{<permission>hudson.model.Hudson.Administer</permission>}}
          {{....}}
          {{</permissions>}}
          {{ <assignedSIDs>}}
          {{...}}
          {{<sid>USER:jm044248</sid>}}
          {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions....

           
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}
          {{ <roleMap type="globalRoles">}}
          {{ <role name="admin" pattern=".*">}}
          {{ <permissions>}}
          {{....}}
          {{<permission>hudson.model.Hudson.Administer</permission>}}
          {{....}}
          {{</permissions>}}
          {{ <assignedSIDs>}}
          {{...}}
          {{<sid>USER:jm044248</sid>}}
          {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions....

           
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}
           \{{ <roleMap type="globalRoles">}}
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}
           \{{ <roleMap type="globalRoles">}}
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}

          In home/config.xml I found:

          {{...}}
           \{{ <roleMap type="globalRoles">}}
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}

          In home/config.xml I found:

          {{...}}
           \{{ <roleMap type="globalRoles">}}
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}

          In home/config.xml I found:

          {{...}}
             <roleMap type="globalRoles">
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          Martin Jost made changes -
          Description Original: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}

          In home/config.xml I found:

          {{...}}
             <roleMap type="globalRoles">
           \{{ <role name="admin" pattern=".*">}}
           \{{ <permissions>}}
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           \{{ <assignedSIDs>}}
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           
          New: I’ve updated Matrix “Authorization Strategy” plugin from 2.6.11 to 3.0.
           Now on the “Assign Roles” configuration page, all users/groups are prefixed by:
           "No type prefix:" in red.
           I’ve understood that the new plugin needs adaptations. ([https://plugins.jenkins.io/matrix-auth/#releases])
           I’ve tried to delete the users and add them newly. But as soon as I reload the page after “Save” or “Apply”, I’m back in the same situation.

          With the hint from [https://community.jenkins.io/t/matrix-authorization-strategy-3-0-no-type-prefix/1043]
           I added 'USER:' before my user entries - that seems to have fixed the problem.

          Some hint on that in the GUI would be really good. (and/or on the version notes [https://plugins.jenkins.io/matrix-auth/#releases])

           

          Update: Unfortunately, it seems my account has lost the “Admin” permissions. Quite bad, locked myself out for the moment…
           So the "USER:..." didn't solved it seemingly.

          In home/config.xml I found:

          {{...}}

          In home/config.xml I found:

          {{...}}
              <roleMap type="globalRoles">
           <role name="admin" pattern=".*">
            <permissions>
           {{....}}
           {{<permission>hudson.model.Hudson.Administer</permission>}}
           {{....}}
           {{</permissions>}}
           <assignedSIDs>
           {{...}}
           {{<sid>USER:jm044248</sid>}}
           {{....}}

           

          jm044248 is me - so I would assume, I should have the Admin permissions, but....

           

          Martin Jost added a comment - - edited

          If I try to do a "JENKINS_URL/exit"
          I get "jm044248 is missing the Overall/Administer permission"
          Is this something to enter as " <permission>....</permission>" ???

           

          Martin Jost added a comment - - edited If I try to do a "JENKINS_URL/exit" I get "jm044248 is missing the Overall/Administer permission" Is this something to enter as " <permission>....</permission> " ???  

          Daniel Beck added a comment -

          The release notes are very explicit that you need to wait with upgrading until compatible versions of dependent plugins, in this case role-strategy, are released.

          Quoting:

          • Plugin APIs have changed significantly.While some compatibility is retained, other plugins that depend on this plugin will likely need to be adapted to these changes or may behave in unexpected ways.If you use any plugins with a dependency on this plugin, make sure they're compatible with this release before upgrading.

          Daniel Beck added a comment - The release notes are very explicit that you need to wait with upgrading until compatible versions of dependent plugins, in this case role-strategy , are released. Quoting: Plugin APIs have changed significantly.While some compatibility is retained, other plugins that depend on this plugin will likely need to be adapted to these changes or may behave in unexpected ways. If you use any plugins with a dependency on this plugin, make sure they're compatible with this release before upgrading.
          Daniel Beck made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            danielbeck Daniel Beck
            martinjost Martin Jost
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: