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
- is related to
-
NEXUS-16252 disable mime type validation by default for RAW proxy repos
-
- Open
-
-
NEXUS-11226 Better Strict Content Type Validation
-
- Ready to Groom
-