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

eot file type incorrectly detected as text/plain

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.34.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Notability:
      n/a

      Description

      With content validation enabled, uploading an .eot file to a (raw) repo results in validation failure due to the file type correctly being detected as text/plain instead of application/vnd.ms-fontobject.

      ERROR [qtp1338111963-650] admin org.sonatype.nexus.coreui.UploadResource - Unable to perform upload to repository source
      org.sonatype.nexus.repository.InvalidContentException: Detected content type [text/plain], but expected [application/vnd.ms-fontobject]: flaticon.eot
      	at org.sonatype.nexus.repository.mime.DefaultContentValidator.determineContentType(DefaultContentValidator.java:95)
      	at org.sonatype.nexus.repository.storage.StorageTxImpl.determineContentType(StorageTxImpl.java:1054)
      	at org.sonatype.nexus.repository.storage.StorageTxImpl.buildStorageHeaders(StorageTxImpl.java:772)
      	at org.sonatype.nexus.repository.storage.StorageTxImpl.createBlob(StorageTxImpl.java:731)
      

      Workaround
      Temporarily disable content validation and perform upload.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hardeepn Hardeep Nagra
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title