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

Error editing project permissions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Cannot Reproduce
    • matrix-auth-plugin
    • None
    • Jenkins 2.277.4

    Description

      I have setup project-based security on my projects. I have been able to add and remove permissions in the past, although it's been a long time (years) since I tried to remove permissions. Today I tried to remove permissions and nothing happens. Clicking Save or Apply have no effect. Leaving the page gives me the warning that data may not be saved. Visiting the configuration page again shows no changes to the permissions.

      When the page loads I see the following the javascript console

       hudson-behavior.js:1495 Unable to find nearby url
      (anonymous) @ hudson-behavior.js:1495
      (anonymous) @ hudson-behavior.js:47
      (anonymous) @ prototype.js:853
      each @ prototype.js:852
      refillOnChange @ hudson-behavior.js:1492
      (anonymous) @ select.js:104
      (anonymous) @ behavior.js:116
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      (anonymous) @ select.js:280
      setTimeout (async)
      (anonymous) @ select.js:274
      behavior.js:119 TypeError: Cannot read property 'hasClassName' of undefined
          at repeatable.js:159
          at Array.forEach (<anonymous>)
          at behavior.js:116
          at Array.forEach (<anonymous>)
          at behavior.js:111
          at Array.forEach (<anonymous>)
          at Object.applySubtree (behavior.js:93)
          at Object.apply (behavior.js:76)
          at behavior.js:71
          at window.onload (behavior.js:133)
      (anonymous) @ behavior.js:119
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:133
      window.onload @ behavior.js:133
      load (async)
      addLoadEvent @ behavior.js:132
      createSearchBox @ hudson-behavior.js:2472
      (anonymous) @ configure:7
      behavior.js:119 TypeError: Cannot read property 'next' of undefined
          at findEnd (hudson-behavior.js:820)
          at hudson-behavior.js:1151
          at Array.forEach (<anonymous>)
          at behavior.js:116
          at Array.forEach (<anonymous>)
          at behavior.js:111
          at Array.forEach (<anonymous>)
          at Object.applySubtree (behavior.js:93)
          at Object.apply (behavior.js:76)
          at behavior.js:71
      (anonymous) @ behavior.js:119
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:133
      window.onload @ behavior.js:133
      load (async)
      addLoadEvent @ behavior.js:132
      createSearchBox @ hudson-behavior.js:2472
      (anonymous) @ configure:7
      behavior.js:119 TypeError: Cannot read property 'hasClassName' of undefined
          at hudson-behavior.js:1188
          at Array.forEach (<anonymous>)
          at behavior.js:116
          at Array.forEach (<anonymous>)
          at behavior.js:111
          at Array.forEach (<anonymous>)
          at Object.applySubtree (behavior.js:93)
          at Object.apply (behavior.js:76)
          at behavior.js:71
          at window.onload (behavior.js:133)
      (anonymous) @ behavior.js:119
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:133
      window.onload @ behavior.js:133
      load (async)
      addLoadEvent @ behavior.js:132
      createSearchBox @ hudson-behavior.js:2472
      (anonymous) @ configure:7
      behavior.js:119 TypeError: Cannot read property 'makeInnerVisible' of undefined
          at updateOptionalBlock (hudson-behavior.js:1570)
          at hudson-behavior.js:1209
          at Array.forEach (<anonymous>)
          at behavior.js:116
          at Array.forEach (<anonymous>)
          at behavior.js:111
          at Array.forEach (<anonymous>)
          at Object.applySubtree (behavior.js:93)
          at Object.apply (behavior.js:76)
          at behavior.js:71
      (anonymous) @ behavior.js:119
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:133
      window.onload @ behavior.js:133
      load (async)
      addLoadEvent @ behavior.js:132
      createSearchBox @ hudson-behavior.js:2472
      (anonymous) @ configure:7
      hudson-behavior.js:1495 Unable to find nearby url
      (anonymous) @ hudson-behavior.js:1495
      (anonymous) @ hudson-behavior.js:47
      (anonymous) @ prototype.js:853
      each @ prototype.js:852
      refillOnChange @ hudson-behavior.js:1492
      (anonymous) @ select.js:104
      (anonymous) @ behavior.js:116
      (anonymous) @ behavior.js:111
      applySubtree @ behavior.js:93
      apply @ behavior.js:76
      (anonymous) @ behavior.js:71
      window.onload @ behavior.js:133
      window.onload @ behavior.js:133
      load (async)
      addLoadEvent @ behavior.js:132
      createSearchBox @ hudson-behavior.js:2472
      (anonymous) @ configure:7
      

      I do not see any messages show up when clicking on the checkboxes nor when I click the save and apply buttons.

      I just tried adding a user or checking more permission boxes and I see the same behavior, nothing is saved.

      Editing the global security works fine.

      Attachments

        Activity

          jpschewe jpschewe created issue -
          jpschewe jpschewe made changes -
          Field Original Value New Value
          Component/s matrix-auth-plugin [ 18131 ]
          Component/s core [ 15593 ]
          jpschewe jpschewe added a comment -

          I have tried both versions 2.6.6 and 2.6.7 of the Matrix Authorization Strategy plugin.

           

          jpschewe jpschewe added a comment - I have tried both versions 2.6.6 and 2.6.7 of the Matrix Authorization Strategy plugin.  
          danielbeck Daniel Beck added a comment -

          jpschewe Could you confirm everything else in job configuration works? JS errors like these looks like they are probably caused by plugins incompatible with "tables to div" migration. Please read https://www.jenkins.io/doc/upgrade-guide/2.277/#configuration-form-modernization and confirm listed known incompatible plugins with what you have installed.

          danielbeck Daniel Beck added a comment - jpschewe Could you confirm everything else in job configuration works? JS errors like these looks like they are probably caused by plugins incompatible with "tables to div" migration. Please read https://www.jenkins.io/doc/upgrade-guide/2.277/#configuration-form-modernization and confirm listed known incompatible plugins with what you have installed.
          danielbeck Daniel Beck added a comment -

          Almost certainly a tables-to-divs issue.

          danielbeck Daniel Beck added a comment - Almost certainly a tables-to-divs issue.
          danielbeck Daniel Beck made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Closed [ 6 ]
          jpschewe jpschewe added a comment -

          danielbeck thank you for the pointer. I found that I had the locks & latches plugin installed and once I disabled it and restarted the problem went away.

          jpschewe jpschewe added a comment - danielbeck  thank you for the pointer. I found that I had the locks & latches plugin installed and once I disabled it and restarted the problem went away.

          People

            Unassigned Unassigned
            jpschewe jpschewe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: