You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2018/11/23 11:37:00 UTC

[jira] [Comment Edited] (OAK-7608) Throw exception if all properties name are given wrong for faceting

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

Vikas Saurabh edited comment on OAK-7608 at 11/23/18 11:36 AM:
---------------------------------------------------------------

Fixed on trunk at [r1845731|https://svn.apache.org/r1845731].
Backported to 1.8 at [r1847227|https://svn.apache.org/r1847227].


was (Author: catholicon):
Fixed on trunk at [r1845731|https://svn.apache.org/r1845731].

> Throw exception if all properties name are given wrong for faceting
> -------------------------------------------------------------------
>
>                 Key: OAK-7608
>                 URL: https://issues.apache.org/jira/browse/OAK-7608
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene, query
>            Reporter: Ayush Garg
>            Assignee: Vikas Saurabh
>            Priority: Major
>             Fix For: 1.10, 1.9.11, 1.8.10
>
>
> This can be treated as bug .
> When an Xpath query passed for faceting 
> Example: {noformat}"//*[jcr:contains(jc/@text, 'hello OR hallo')]/(rep:facet(text))/(rep:facet(test)) | (rep:facet(name)) order by jcr:path"{noformat}
> if all properties name on which faceting is to done are wrong property name(i.e that doesn't exists ) it doesn't throw Exception and return the result set.But if one or more is correct and one or more is wrong property name it will throw exception 
> java.lang.RuntimeException: java.lang.IllegalArgumentException: invalid dim "Wrong_Property_Name".
>  
> QueryManager should same behavior when a wrong propery passed for faceting



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)