Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-20015

Enable HealthCheck button errors when clicked (with limited permission)

    XMLWordPrintable

    Details

    • Story Points:
      3

      Description

      I noticed if I have only repository admin privileges (e.g. just

      nx-repository-admin-*-*-*

      ) when editing a repository, the "Enable HealthCheck" button is enabled and clickable but when I do so, I get the below error in JS console as well as the attached screen.
      I was able to reproduce this reliably after clearing my browser cache. Beforehand, I noticed an unhandled JS console error (was unable to repro so no screen) and later permissions seemed checked correctly, so this may not be an easy one to reproduce without cache clear (reiterate, seemed to repro 100% of the time post-cache clear).

      Console error:

      Uncaught TypeError: Cannot read property 'get' of null
          at constructor.toggleHealthCheck (nexus-coreui-plugin-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.fire (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.dispatch (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.callParent (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.dispatch (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.b.doFireEvent (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.fireEventArgs (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.fireEvent (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.fireHandler (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
          at ctor.onClick (baseapp-prod.js?_v=3.17.0-SNAPSHOT&_e=PRO&_dc=1558991469827:1)
      

      Despite the error, nothing happens with RHC, so marking minor.

      I was surprised the button was enabled with lack of permission (contrary to the rest of the app) but maybe that is part of the problem rather than a solution.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Amanda Newman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title