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

Valid Maven POM is misidentified as HTML by content verification

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.2, 3.6.0, 3.6.2, 3.9.0, 3.10.0, 3.11.0, 3.12.0
    • Fix Version/s: 3.13.0
    • Component/s: Maven
    • Labels:

      Description

      On a fresh Nexus instance create a proxy repository called "RSO" for https://repository.sonatype.org/content/repositories/sonatype-internal/ and make sure content verification is enabled (it should be on by default)

      Now try to access http://127.0.0.1:8081/repository/RSO/com/sonatype/insight/ci/insight-ci-parent/2.14.4/insight-ci-parent-2.14.4.pom you will receive a 404 with the following message:

      Detected content type [text/html], but expected [application/xml, text/xml, application/x-xml]: com/sonatype/insight/ci/insight-ci-parent/2.14.4/insight-ci-parent-2.14.4.pom.xml

      Turning off content verification allows this POM to be downloaded, but we should investigate why it misidentified the content in this case.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bradbeck Brad Beck
              Reporter:
              mcculls Stuart McCulloch
              Last Updated By:
              Rich Seddon
              Team:
              Nexus - Core
              Votes:
              14 Vote for this issue
              Watchers:
              31 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title