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

Switching format errors on save if unapplicable criteria are applied

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.29.1, 3.37.3
    • Fix Version/s: 3.38.0
    • Component/s: Cleanup, UI
    • Labels:
    • Story Points:
      2
    • Sprint:
      NXRM Neo Sprint 27

      Description

      Noticed in React testing, that if you have a criteria applied to a cleanup policy that is specific to certain formats e.g. "Release Type" and then change the format to one where that criteria doesn't apply (e.g. Raw in this case) and save, you'll get the below error.
      This was not a problem in the extjs implementation because you could not change format.

      2020-11-18 16:26:28,904-0500 WARN  [qtp1349810651-195] admin org.sonatype.nexus.siesta.internal.WebappExceptionMapper - (ID 0a3d5265-d367-48ea-8eec-b8e4465ed71c) Response: [400] (no entity/body); mapped from: javax.ws.rs.BadRequestException: Specified format raw does not support the 'Release type' criteria.
      

      Repro steps (on react build):
      1. Create a cleanup policy of format maven2 w/ release type checked and defined. Save.
      2. Edit the format to raw. Save. BUG: Should get the error in nexus.log and another on screen.

      Workaround: Uncheck the policy first.

        Attachments

          Activity

            People

            Assignee:
            tahir.awan Tahir Awan
            Reporter:
            jtom Joe Tom
            Last Updated By:
            Tahir Awan Tahir Awan
            Team:
            NXRM - Neo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title