Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44446

Content-Type not set correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: s3-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.46.2
      S3 Plugin 0.10.12
      AWS SDK 1.11.119
    • Similar Issues:

      Description

      Using the following to upload a JSON file to S3 results in the Metadata Content-Type to be set to application/octet-stream

      step([$class: 'S3BucketPublisher', consoleLogLevel: 'INFO', dontWaitForConcurrentBuildCompletion: false, entries: [[
      bucket: 'x.x.tech',
      excludedFile: '',
      flatten: false,
      gzipFiles: false,
      keepForever: true,
      managedArtifacts: false,
      noUploadOnFailure: true,
      selectedRegion: 'eu-west-1',
      showDirectlyInBrowser: false,
      sourceFile: "path/**",
      storageClass: 'STANDARD',
      uploadFromSlave: false,
      useServerSideEncryption: true
      ]], pluginFailureResultConstraint: 'FAILURE', profileName: 'x-profile', userMetadata: []])
      

      However we'd like to set the Content-Type to application/json. I've had a look around and seen nothing, but looking in the code I see that this should be set automatically, Is there something I'm missing for this to be set correctly?

        Attachments

          Activity

          garfty Gareth Parker created issue -

            People

            Assignee:
            jimilian Alexander A
            Reporter:
            garfty Gareth Parker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: