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

Toggling "Enable IQ Server" fails due to validation error

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.40.1, 3.41.1
    • Fix Version/s: None
    • Component/s: IQ Integration, UI
    • Labels:
    • Notability:
      3
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      Enabling or Disabling the "Enable IQ Server" option in the Nexus UI -> IQ Server page can fail due to the following validation warning:

      2022-09-20 14:33:25,197+0100 WARN  [qtp1466950446-120] admin com.sonatype.nexus.clm.internal.capability.ClmCapabilityDescriptor - Validation failed; 2 constraints violated:
        1) User Authentication method requires the password to be set., type: class com.sonatype.nexus.clm.ClmConfiguration, property: password, value: ClmConfiguration{url=http://localhost:8070, useTrustStore=false, authenticationType=USER, username=admin, timeout=null, properties=null, showLink=false}
        2) Authentication configuration is invalid., type: class com.sonatype.nexus.clm.ClmConfiguration, property: , value: ClmConfiguration{url=http://localhost:8070, useTrustStore=false, authenticationType=USER, username=admin, timeout=null, properties=null, showLink=false}
      

      This appears to happen as the IQ password value is missing/not persisted on the configuration form. 

      To reproduce:

      1. Via the Nexus UI -> IQ Server page, configure an IQ connection and save the changes.
      2. Whilst remaining on the page, disable –> save then reenable –> save the "Enable IQ Server" option and observe that you can successfully do so without editing any of the other the configuration.
      3. Now go away from the page to another part of the UI, then return to the IQ Server page and repeat step 2. This time notice that the saving will fail with a "An error occurred while saving the form" message in the UI and the above warning in the nexus.log.

      Workaround:

      Re-enter the IQ password and then save the changes.

      Expected:

      Re-entering the IQ user password should be not be required when attempting to enable or disable IQ usage.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Hardeep Nagra Hardeep Nagra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title