You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2015/01/22 18:26:36 UTC

[jira] [Resolved] (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:all-tabpanel ]

Dmytro Sen resolved AMBARI-8605.
--------------------------------
    Resolution: Fixed

Committed to trunk

> 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)