Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6496

HttpServer sends wrong content-type for CSS files (and others)

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.21.0, 0.22.0
    • 1.2.0, 0.22.0, 1-win
    • None
    • None
    • Reviewed

    Description

      CSS files are send as text/html causing problems if the HTML page is rendered in standards mode. The HDFS interface for example still works because it is rendered in quirks mode, the HBase interface doesn't work because it is rendered in standards mode. See HBASE-2110 for more details.

      I've had a quick look at HttpServer but I'm too unfamiliar with it to see the problem. I think this started happening with HADOOP-6441 which would lead me to believe that the filter is called for every request and not only *.jsp and *.html. I'd consider this a bug but I don't know enough about this to provide a fix.

      Attachments

        1. hadoop-6496.txt
          8 kB
          Todd Lipcon
        2. hadoop-6496.txt
          10 kB
          Todd Lipcon
        3. HADOOP-6496.branch-1.1.backport.patch
          8 kB
          Ivan Mitic
        4. HADOOP-6496.branch-1.1.backport.2.patch
          5 kB
          Ivan Mitic

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ivanmi Ivan Mitic
            larsfrancke Lars Francke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment