incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-1479) Query Lexer sometimes fails to properly parse query strings with ignored properties such as 'fields' present
Date Fri, 22 Feb 2013 18:12:12 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Speidel updated AMBARI-1479:
---------------------------------

    Attachment: AMBARI-1479.patch
    
> Query Lexer sometimes fails to properly parse query strings with ignored properties such
as 'fields' present
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-1479
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1479
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: John Speidel
>            Assignee: John Speidel
>         Attachments: AMBARI-1479.patch
>
>
> For some query strings with ignored properties such as 'fields' the Query Lexer fails
to properly parse the query string which results in a 500 error.  Once case that results in
this is when the fields property occurs between 2 query predicates such as: ?foo=1&fields=a,b&bar=2
> SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP
container
> java.lang.NullPointerException
> at org.apache.ambari.server.controller.predicate.ComparisonPredicate.compareValueTo(ComparisonPredicate.java:96)
> at org.apache.ambari.server.controller.predicate.EqualsPredicate.evaluate(EqualsPredicate.java:35)
> at org.apache.ambari.server.controller.predicate.AndPredicate.evaluate(AndPredicate.java:68)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ResourceIterator.getNextResource(ClusterControllerImpl.java:472)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ResourceIterator.<init>(ClusterControllerImpl.java:434)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ResourceIterator.<init>(ClusterControllerImpl.java:405)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ResourceIterable.iterator(ClusterControllerImpl.java:398)
> at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:139)
> at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:61)
> at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:68)
> at org.apache.ambari.server.api.services.HostComponentService.getHostComponents(HostComponentService.java:91)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message