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

Blob store promotion leads to persistent class cast exception in UI

    XMLWordPrintable

    Details

    • Story Points:
      1

      Description

      When trying to promote a blob store the follow exception occurs and leads to a persistent error in the UI that doesn't allow blob stores to be viewed or repos created since the blob store drop down is empty.

      2019-02-25 20:26:29,330+0000 ERROR [qtp1509481252-50]  admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: coreui_Blobstore.promoteToGroup, java-method: org.sonatype.nexus.coreui.BlobStoreComponent.promoteToGroup
      java.lang.ClassCastException: Cannot cast java.lang.Integer to java.lang.Long
          at java.lang.Class.cast(Class.java:3369)
          at org.sonatype.nexus.common.collect.AttributesMap.coerce(AttributesMap.java:75)
          at org.sonatype.nexus.common.collect.AttributesMap.get(AttributesMap.java:153)
          at org.sonatype.nexus.common.collect.AttributesMap.get(AttributesMap.java:162)
          at org.sonatype.nexus.common.collect.AttributesMap$get$1.call(Unknown Source)
          at org.sonatype.nexus.coreui.BlobStoreComponent.asBlobStoreXO(BlobStoreComponent.groovy:221)
          at org.sonatype.nexus.coreui.BlobStoreComponent.asBlobStoreXO(BlobStoreComponent.groovy:209)
          at org.sonatype.nexus.coreui.BlobStoreComponent$asBlobStoreXO.callCurrent(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
          at org.sonatype.nexus.coreui.BlobStoreComponent.promoteToGroup(BlobStoreComponent.groovy:243)
          at com.palominolabs.metrics.guice.ExceptionMeteredInterceptor.invoke(ExceptionMeteredInterceptor.java:49)
          at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:47)
      

      Reproduce steps:

      1. Create a blob store, set a soft quota of 50
      2. Attempt to promote the blob store
      3. Observe that the blob store UI no longer works due to class cast exception
      4. Reboot Nexus Repo.... observe that the blob store UI is still broken

        Attachments

          Activity

            People

            Assignee:
            mbucher Michael Bucher
            Reporter:
            mjohnson Matt Johnson
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Morpheus
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title