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

Archived artifacts are served with improper mime-types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      We use the "Archive build artifacts" to save a number of logs pertaining to the build, these files are
      all text files with a ".log" suffix.

      Regardless of this however, Hudson still serves these files with the 'application/octet-stream' mime-
      type, causing stupid browsers like Firefox to try to download the file instead of render the text.

        Attachments

          Issue Links

            Activity

            Hide
            remke remke added a comment -

            Created an attachment (id=781)
            Patch for web.xml, modify to your needs

            Show
            remke remke added a comment - Created an attachment (id=781) Patch for web.xml, modify to your needs
            Hide
            remke remke added a comment -

            I created a unified diff file for the web.xml. It is very simple, modify to your
            needs.

            Show
            remke remke added a comment - I created a unified diff file for the web.xml. It is very simple, modify to your needs.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/main/war/resources/WEB-INF/web.xml
            trunk/www/changelog.html
            http://fisheye4.cenqua.com/changelog/hudson/?cs=19730
            Log:
            [FIXED JENKINS-3803] In 1.316.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/war/resources/WEB-INF/web.xml trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=19730 Log: [FIXED JENKINS-3803] In 1.316.
            Hide
            jerryshea jerryshea added a comment -

            Could we also add this to the web.xml to allow serving up of SVG (my build
            generates some of these)?
            svg=image/svg+xml

            Show
            jerryshea jerryshea added a comment - Could we also add this to the web.xml to allow serving up of SVG (my build generates some of these)? svg=image/svg+xml
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: George Shakhnazaryan
            Path:
            war/src/main/webapp/WEB-INF/web.xml
            http://jenkins-ci.org/commit/jenkins/c1d2c945465d30efb63de7abce51d95289170e63
            Log:
            Adding the video/webm mime type for files with extension .webm. The change is similar to JENKINS-3803, just a different extension.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: George Shakhnazaryan Path: war/src/main/webapp/WEB-INF/web.xml http://jenkins-ci.org/commit/jenkins/c1d2c945465d30efb63de7abce51d95289170e63 Log: Adding the video/webm mime type for files with extension .webm. The change is similar to JENKINS-3803 , just a different extension.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rtyler R. Tyler Croy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: