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

Archived artifacts are served with improper mime-types

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None
    • Platform: All, OS: All

    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

            remke remke added a comment -

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

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

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

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

            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.

            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.
            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

            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

            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.

            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

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

              Dates

                Created:
                Updated:
                Resolved: