You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Ari Rabkin (JIRA)" <ji...@apache.org> on 2010/11/10 20:06:14 UTC

[jira] Created: (CHUKWA-552) HICC+ HBase + options with % sign = bug

HICC+ HBase + options with % sign = bug
---------------------------------------

                 Key: CHUKWA-552
                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
             Project: Chukwa
          Issue Type: Bug
          Components: User Interface
            Reporter: Ari Rabkin
            Assignee: Michael Chang


If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Commented: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930747#action_12930747 ] 

Eric Yang commented on CHUKWA-552:
----------------------------------

FYI, try out SystemMetrics adaptor, it works much better than scrapping df output, and it supports all major unix platforms.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Chang updated CHUKWA-552:
---------------------------------

    Attachment: CHUKWA-552.patch

Missing a $ from the previous patch

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch, CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Commented: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930714#action_12930714 ] 

Ari Rabkin commented on CHUKWA-552:
-----------------------------------

Stack trace:

 2010-11-10 11:01:01.365::WARN:  /hicc/v1/metrics/schema/SystemMetrics/Df/Df:Use%
java.lang.IllegalArgumentException
	at java.net.URI.create(URI.java:842)
	at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:95)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:553)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
....
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.net.URISyntaxException: Malformed escape pair at index 62: http://r11:4080/hicc/v1/metrics/schema/SystemMetrics/Df/Df:Use%
...

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Chang updated CHUKWA-552:
---------------------------------

    Attachment: CHUKWA-552.patch

calls encodeURI() on the generated URIs so that jersey can decode them correctly.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Chang updated CHUKWA-552:
---------------------------------

    Release Note: fixed the problem, calling encodeURI() on uris so that they can be decoded correctly.
          Status: Patch Available  (was: In Progress)

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Work started: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CHUKWA-552 started by Michael Chang.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Commented: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930746#action_12930746 ] 

Eric Yang commented on CHUKWA-552:
----------------------------------

I think this is improper handling of html encode on the javascript.  Javascript should send URL as:

/hicc/v1/metrics/schema/SystemMetrics/Df/Df%3AUse%25

Hence jersey can decode it properly.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ari Rabkin updated CHUKWA-552:
------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Michael.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch, CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Commented: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Eric Yang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933214#action_12933214 ] 

Eric Yang commented on CHUKWA-552:
----------------------------------

+1 looks good.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Chang updated CHUKWA-552:
---------------------------------

    Attachment:     (was: CHUKWA-552.patch)

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch, CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Updated: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Michael Chang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Chang updated CHUKWA-552:
---------------------------------

    Attachment: CHUKWA-552.patch

Whoops, this is the correct one.

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>         Attachments: CHUKWA-552.patch, CHUKWA-552.patch
>
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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


[jira] Commented: (CHUKWA-552) HICC+ HBase + options with % sign = bug

Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CHUKWA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930717#action_12930717 ] 

Ari Rabkin commented on CHUKWA-552:
-----------------------------------

Not quite sure where the appropriate stage is to fix this:

Before data gets into HBase?
In the HICC code to pull data out of HBase?
Somewhere else?

Eric, thoughts?

> HICC+ HBase + options with % sign = bug
> ---------------------------------------
>
>                 Key: CHUKWA-552
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-552
>             Project: Chukwa
>          Issue Type: Bug
>          Components: User Interface
>            Reporter: Ari Rabkin
>            Assignee: Michael Chang
>
> If you have an option name with a percent sign in it, that will cause hicc to fail.

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