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

valid .woff files fail Strict Content Type Validation with 400 response

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.4.0
    • Component/s: Repository
    • Labels:
    • Environment:
      centos 6

      Description

      My Maven Plugin configuration is

      <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-site-plugin</artifactId>
                      <version>3.5.1</version>
                      <dependencies>
                          <dependency>
                              <groupId>org.apache.maven.doxia</groupId>
                              <artifactId>doxia-core</artifactId>
                              <version>1.7</version>
                          </dependency>
                          <dependency>
                              <groupId>org.apache.maven.doxia</groupId>
                              <artifactId>doxia-module-markdown</artifactId>
                              <version>1.6</version>
                          </dependency>
                      </dependencies>
                  </plugin>
      

      When i execute the command

      mvn site site:deploy
      

      I'm getting the below error in the Maven build:

      
      ###########https://nexus.dev.two-clicks.de/repository/sites/de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/./fonts/glyphicons-halflings-regular.woff - Status code: 400
       Transfer error: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://nexus.dev.two-clicks.de/repository/sites/de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/./fonts/glyphicons-halflings-regular.woff. Return code is: 400
      https://nexus.dev.two-clicks.de/repository/sites/de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/ - Session: Disconnecting
      https://nexus.dev.two-clicks.de/repository/sites/de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/ - Session: Disconnected
      
      

      Nexus error log:

      Invalid content: PUT /de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/images/apache-maven-project-2.png: org.sonatype.nexus.repository.InvalidContentException: Detected content type [image/jpeg], but expected [image/png]: de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/images/apache-maven-project-2.png
      
      Invalid content: PUT /de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/fonts/glyphicons-halflings-regular.woff: org.sonatype.nexus.repository.InvalidContentException: Content type could not be determined: de.wkss/deployment-maven-plugin/1.0-SNAPSHOT/fonts/glyphicons-halflings-regular.woff
      

        Attachments

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            zeilush Zeilush
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title