You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/02/02 23:54:59 UTC

[jira] [Commented] (AMBARI-8605) Query predicate .matches doesn't work for stacks endpoint with passed logical OR

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

Hudson commented on AMBARI-8605:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit-docker #841 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/841/])
AMBARI-8605 Query predicate .matches doesn't work for stacks endpoint with passed logical OR (dsen) (dsen: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f77be4c4df25aef336f00a7aa9bc0591b347dfb6)
* ambari-server/src/main/java/org/apache/ambari/server/api/predicate/QueryLexer.java
* ambari-server/src/test/java/org/apache/ambari/server/api/predicate/QueryLexerTest.java
AMBARI-8605 Query predicate .matches doesn't work for stacks endpoint with passed logical OR(URL-encoding) (dsen) (dsen: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0edce3c4f275b2ebca042e1fd8fb877acb7c5336)
* ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/ResultPostProcessorImpl.java
* ambari-server/src/test/java/org/apache/ambari/server/api/services/StacksServiceTest.java


> Query predicate .matches doesn't work for stacks endpoint with passed logical OR
> --------------------------------------------------------------------------------
>
>                 Key: AMBARI-8605
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8605
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>             Fix For: 2.0.0
>
>         Attachments: LexerWithComplexValueSupport.patch
>
>
> Stacks endpoint returns java exception for query predicate which use .matches and logical OR, for example:
> {noformat}
> /api/v1/stacks/HDP/versions/2.2/services/HIVE/configurations?fields=*&StackConfigurations/property_type.matches((.*USER.*)|(.*GROUP.*))
> /api/v1/stacks/HDP/versions/2.2/services/HIVE/configurations?fields=*&(StackConfigurations/property_type.matches(.*USER.*)|StackConfigurations/property_type.matches(.*GROUP.*))
> {noformat} 
> Regexp grouping with () doesn't work



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)