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

Mikhail Khludnev commented on SOLR-12330:
-----------------------------------------

{code}
+        throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
+            "Expected Map for 'facet', received " + 
jsonObj.getClass().getSimpleName());
+      }

throw err("Expected Map for 'domain', received " + 
domainObj.getClass().getSimpleName());

throw err("Expected string/map, received " + arg.getClass().getSimpleName());
{code}
Here should be a clue where the problem is, hence jsonObj should be probably 
returned and/or error location somehow provided. 

  

> Referencing non existing parameter in JSON Facet "filter" (and/or other NPEs) 
> either reported too little and even might be ignored 
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-12330
>                 URL: https://issues.apache.org/jira/browse/SOLR-12330
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Facet Module
>    Affects Versions: 7.3
>            Reporter: Mikhail Khludnev
>            Assignee: Mikhail Khludnev
>            Priority: Major
>         Attachments: SOLR-12330-combined.patch, SOLR-12330.patch, 
> SOLR-12330.patch, SOLR-12330.patch, SOLR-12330.patch, SOLR-12330.patch
>
>
> Just encounter such weird behaviour, will recheck and followup. 
>  {{"filter":["\\{!v=$bogus}"]}} responds back with just NPE which makes 
> impossible to guess the reason.
> -It might be even worse, since- {{"filter":[\\{"param":"bogus"}]}} seems like 
> just silently ignored. Turns out it's ok see SOLR-9682



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to