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

Using REST API to create the same repository twice causes InvalidStateException

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • 3.41.0
    • 3.38.1, 3.40.0
    • REST
    • None
    • 2
    • NXRM Sentinels Sprint 36, NXRM Sentinels Sprint 37, NXRM Sentinels Sprint 38
    • 3

    Description

      When using the attached curl command to create a (proxy) repository via the REST API, the first attempt is successful. However, running the same command a second command will correctly fail (duplicate key) but then leave the internal model in a corrupt state such that the repository list will fail to load and subsequent API attempts to delete the repository will also fail.

      Restarting Nxrm seems to solve the problem.

      Initial investigation suggests that the error is caused by the querying of the repository (facet) status, which is annotated with a guard. The state seems to be at INITIALIZED rather than STARTED which then causes all subsequent code to fail.

      (Tested on H2)

      Attachments

        Issue Links

          Activity

            People

              aosadchuk Andrii Osadchuk [X] (Inactive)
              mkearns Michael Kearns
              Rich Seddon Rich Seddon
              NXRM - Sentinels
              Andrii Osadchuk [X] Andrii Osadchuk [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                tigCommentSecurity.panel-title