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

creating a support zip with Task logs only when there are no task logs yet has unhelpful message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.34.0
    • Fix Version/s: None
    • Component/s: Support Tools, UI
    • Labels:
    • Notability:
      n/a

      Description

      Start a new instance that has no task logs yet. Try to create a support zip with only the Task logs only option selected. Support zip generation fails with "An error occurred loading data. Request failed with status code 500". The logs report:

      2021-09-03 19:00:27,847-0300 INFO  [qtp2048151049-666] admin org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl - Generating support ZIP: Request{systemInformation=false, threadDump=false, metrics=false, configuration=false, security=false, log=false, tasklog=true, auditlog=false, jmx=false, replication=false, limitFileSizes=true, limitZipSize=true}
      2021-09-03 19:00:27,859-0300 WARN  [qtp2048151049-666] admin org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID 4c5cc772-3338-44ab-ad11-3a102db8e98c) Unexpected exception: java.lang.IllegalStateException: At least one content source must be configured
      java.lang.IllegalStateException: At least one content source must be configured
      	at com.google.common.base.Preconditions.checkState(Preconditions.java:510)
      	at com.google.common.base.Preconditions$checkState$1.callStatic(Unknown Source)
      	at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl.generate(SupportZipGeneratorImpl.groovy:186)
      	at org.sonatype.nexus.supportzip.SupportZipGenerator$generate$1.callCurrent(Unknown Source)
      	at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl.generate(SupportZipGeneratorImpl.groovy:157)
      	at org.sonatype.nexus.supportzip.SupportZipGenerator$generate$0.callCurrent(Unknown Source)
      	at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl.generate(SupportZipGeneratorImpl.groovy:142)
      	at org.sonatype.nexus.supportzip.SupportZipGenerator$generate.call(Unknown Source)
      	at org.sonatype.nexus.internal.support.SupportResource.supportzippath(SupportResource.groovy:79)
      

      Expected

      Letting the user know that the support zip generated would have been empty with the options selected is preferred. The log message is not accurate, the user selected options. Improve UI message in this case.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title