[ 
https://issues.apache.org/jira/browse/AMBARI-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584516#comment-13584516
 ] 

Tom Beerbower commented on AMBARI-1479:
---------------------------------------

+1
                
> 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

Reply via email to