You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2023/09/22 15:34:00 UTC

[jira] [Resolved] (SOLR-16925) Broken JSON indentation using JacksonJsonWriter

     [ https://issues.apache.org/jira/browse/SOLR-16925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Houston Putman resolved SOLR-16925.
-----------------------------------
    Fix Version/s: 9.4
         Assignee: Houston Putman
       Resolution: Fixed

> Broken JSON indentation using JacksonJsonWriter
> -----------------------------------------------
>
>                 Key: SOLR-16925
>                 URL: https://issues.apache.org/jira/browse/SOLR-16925
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 9.3
>         Environment: Problem reproduces across 6+ SolrCloud clusters.
>            Reporter: Ovidiu Mihalcea
>            Assignee: Houston Putman
>            Priority: Major
>             Fix For: 9.4
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> I'm seeing some very weird formatting using the default interface query output in SolrCloud mode. Either all the indented content is shifted by many white spaces (while keeping indents after this), either there is not indenting at all (keeping multiple lines, different from indent=false), either we get a new line between every line. 
> I believe it's a bug from the combination of the JacksonJsonWriter and indent=true. The Query component of the interface is quite an important feature for debugging.
> The workaround was to add <queryResponseWriter name="json" class="solr.JSONResponseWriter" /> and <str name="wt">json</str> to the defaults on the /select SearchHandler, as it seems when not specifying a default wt it defaults to the JacksonJsonWriter and not JSONResponseWriter.



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