You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Alex Deparvu (Jira)" <ji...@apache.org> on 2023/10/04 23:33:00 UTC

[jira] [Comment Edited] (SOLR-17009) json.wrf parameter ignored in JacksonJsonWriter

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

Alex Deparvu edited comment on SOLR-17009 at 10/4/23 11:32 PM:
---------------------------------------------------------------

I was gravitating towards the same, seems like an oversight. re. arrays we already use `.withArrayIndenter(DefaultPrettyPrinter.NopIndenter.instance);`

[edit] my suggestion (a bit unclear above) would have been to use NopIndenter for objects too.


was (Author: alex.parvulescu):
I was gravitating towards the same, seems like an oversight. re. arrays we already use `.withArrayIndenter(DefaultPrettyPrinter.NopIndenter.instance);`

> json.wrf parameter ignored in JacksonJsonWriter
> -----------------------------------------------
>
>                 Key: SOLR-17009
>                 URL: https://issues.apache.org/jira/browse/SOLR-17009
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: JSON Request API
>    Affects Versions: 9.3
>            Reporter: Chris Stewart
>            Assignee: Alex Deparvu
>            Priority: Blocker
>             Fix For: 9.4
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When requesting json output in 9.3 using json.wrf to trigger a JSONP request, the return is not wrapped in a function and is instead returned as a plain JSON object
>  My test cases are:
> wt=json&json.wrf=ng_jsonp_callback_0 on Solr 9.3.0
>  { "responseHeader":{ "status":0, "QTime":9, "params":{
>  wt=json&json.wrf=ng_jsonp_callback_0 on Solr 7.3.1
>  ng_jsonp_callback_0({ "responseHeader":{ "status":400, "QTime":206, "params":{



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org