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

Nexus should log the GAV details when it causes errors due to NEXUS-30537

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.37.3
    • Fix Version/s: None
    • Component/s: Logging, Scheduled Tasks
    • Labels:
    • Notability:
      3

      Description

      Nexus does not log the actual GAV which is causing the following failure while performing the "Repair - Rebuild repository search" / "Repair Maven Metadata" tasks

      2022-03-11 02:44:41,573+0000 INFO  [quartz-13-thread-7]  *SYSTEM org.sonatype.nexus.repository.search.SearchFacetImpl - Rebuilding index of repository releases
      2022-03-11 02:44:43,768+0000 ERROR [quartz-13-thread-7]  *SYSTEM org.sonatype.nexus.repository.search.SearchFacetImpl - Unable to rebuild search index for repository releases
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      	at java.lang.String.charAt(String.java:658)
      	at org.sonatype.nexus.repository.maven.internal.search.MavenVersionNormalizer.getQualifierType(MavenVersionNormalizer.java:222)
      	at org.sonatype.nexus.repository.maven.internal.search.MavenVersionNormalizer.getNormalizedValue(MavenVersionNormalizer.java:231)
      	at org.sonatype.nexus.repository.maven.internal.search.MavenVersionNormalizer.getNormalizedValue(MavenVersionNormalizer.java:124)
      	at org.sonatype.nexus.repository.maven.internal.orient.Maven2ComponentMetadataProducer.getNormalizedVersion(Maven2ComponentMetadataProducer.java:63)
      	at org.sonatype.nexus.repository.search.DefaultComponentMetadataProducer.getMetadata(DefaultComponentMetadataProducer.java:112)
      	at org.sonatype.nexus.repository.search.SearchFacetImpl.json(SearchFacetImpl.java:251)
      

      Reference JIRA: NEXUS-30537

      Expected

      • Whenever above kind of failure happens nexus should log the details of the component which is causing this failure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jsensharma Jay Kumar SenSharma
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  tigCommentSecurity.panel-title