You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/01/12 01:20:54 UTC

[jira] Created: (HBASE-2110) Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).

Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).
---------------------------------------------------------------------------------------------

                 Key: HBASE-2110
                 URL: https://issues.apache.org/jira/browse/HBASE-2110
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack
             Fix For: 0.21.0


Move to ivy broke pulling in hbase.css from the static webapp; investigate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-2110) Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).

Posted by "Lars Francke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801097#action_12801097 ] 

Lars Francke commented on HBASE-2110:
-------------------------------------

Thanks and no problem! I was stumped too - I'm a Chrome user as well and it reported no problems. It even downloaded the CSS and showed it to me but it wouldn't apply it. Firebug loaded the file and then said "No rules found" but when I clicked "edit" in Firebug everything was there and as soon as I changed a single character everything worked... that was one stupid bug to find (especially considering that it worked for the Hadoop page but not HBase)

I've filed an issue with Hadoop Commons (linked it to this one) and I hope they'll find a solution. Doesn't sound like there is an easy fix that is not a "hack". I'll update this issue when the underlying problem is resolved. For now you can just delete the DOCTYPE declaration from all .jsp files to get the CSS back.

> Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-2110
>                 URL: https://issues.apache.org/jira/browse/HBASE-2110
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.21.0
>
>
> Move to ivy broke pulling in hbase.css from the static webapp; investigate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-2110) Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).

Posted by "Lars Francke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800749#action_12800749 ] 

Lars Francke commented on HBASE-2110:
-------------------------------------

I might be wrong on this one but I think this happened before the move to Ivy and I think it is because the CSS file is sent with a MIME type of text/html since HADOOP-6441. The HDFS interface isn't broken though so I'm not 100% sure how they are doing it. I'll have a look.

> Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-2110
>                 URL: https://issues.apache.org/jira/browse/HBASE-2110
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.21.0
>
>
> Move to ivy broke pulling in hbase.css from the static webapp; investigate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-2110) Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800804#action_12800804 ] 

stack commented on HBASE-2110:
------------------------------

@ Lars You are a good man.  Thanks for figuring this.  It had me stumped (Was using chrome at the time.  No warnings about mimetype though has fancy stylesheet inspector which was styling nicely with old hbases but was mute on the post-ivy trunk).

> Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-2110
>                 URL: https://issues.apache.org/jira/browse/HBASE-2110
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.21.0
>
>
> Move to ivy broke pulling in hbase.css from the static webapp; investigate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-2110) Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).

Posted by "Lars Francke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800803#action_12800803 ] 

Lars Francke commented on HBASE-2110:
-------------------------------------

It is definitely the MIME type that is causing the problem so I checked why the HDFS interface works and saw that its CSS was served as text/html, too.

HBase on Firefox: Error: The stylesheet http://192.168.1.23:60010/static/hbase.css was not loaded because its MIME type, "text/html", is not "text/css".
HDFS on Firefox: Warning: The stylesheet http://192.168.1.23:50070/static/hadoop.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

The difference: HBase is rendered in standards mode because of the DOCTYPE, HDFS is rendered in Quirks mode because it doesn't define a DOCTYPE. Once I removed it from the JSP everything worked again. I don't consider that the fix though. I'll open a ticket for Hadoop to send the correct MIME type for CSS files and link it to this one (as a side effect of this I've fixed the JSP to comply to XHTML, I suppose I should open a new ticket for that?).

My guess would be that you probably noticed this first when Ivy was introduced because new snapshots of the Hadoop dependencies were pulled.

> Move to ivy broke our finding stylesheet (Tables don't have blue lines around them any more).
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-2110
>                 URL: https://issues.apache.org/jira/browse/HBASE-2110
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.21.0
>
>
> Move to ivy broke pulling in hbase.css from the static webapp; investigate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.