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

Content validation still blocks some items even when permissive

    XMLWordPrintable

    Details

      Description

      I noticed if I had a yum hosted repository with a permissive deploy policy if I curled in a nuget package, then I still got blocked by invalid content type detection as shown below.
      My understanding from the setting and documentation is that permissive means you can add anything. I believe this is how it works for other formats with validation.

      e.g.

      curl --user admin:admin123 "http://localhost:8081/repository/yum-hosted/Packages/SONATYPE.TEST.1.0.nupkg" --upload-file SONATYPE.TEST.1.0.nupkg --request PUT -v
      ...
      < HTTP/1.1 400 Detected content type [application/x-tika-ooxml], but expected [application/zip, application/octet-stream]: Packages/SONATYPE.TEST.1.0.nupkg
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jtom Joe Tom
            Last Updated By:
            Michael Prescott Michael Prescott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title