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

'USER_ROLE_MAPPING' was not found in database 'component' exceptions seen with docker

    XMLWordPrintable

    Details

      Description

      When using docker exceptions similar to:

      'USER_ROLE_MAPPING' was not found in database 'component'
      

      can sometimes occur.

      This was caused by the docker repository code calling out to the search service while holding an active component transaction. If the search service needed to check permissions (in order to filter results) then that could involve a nested transaction to a different database and lead to the above exception.

      The solution was to temporarily pause the component transaction when calling out to the search service.

        Attachments

          Activity

            People

            Assignee:
            mcculls Stuart McCulloch
            Reporter:
            mcculls Stuart McCulloch
            Last Updated By:
            Michael Prescott Michael Prescott
            Team:
            NXRM - Groot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title