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

Jason Gerlowski resolved SOLR-17317.
------------------------------------
    Fix Version/s: main (10.0)
                   9.7
       Resolution: Fixed

> JAX-RS v2 APIs return XML when wt=json specified
> ------------------------------------------------
>
>                 Key: SOLR-17317
>                 URL: https://issues.apache.org/jira/browse/SOLR-17317
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: v2 API
>            Reporter: Jason Gerlowski
>            Assignee: Jason Gerlowski
>            Priority: Minor
>             Fix For: main (10.0), 9.7
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> A mailing list user recently pointed out that certain JAX-RS v2 APIs return 
> XML content when "wt=json" is specified!  The cause is an embarrassing 
> oversight in "V2ApiUtils.getMediaTypeFromWtParam": a switch-case statement 
> there accidentally omits "json" from its list of supported "wt" values.
> We should add the missing branch of the switch-case block, and validate that 
> v2 APIs now respond correctly when wt=json is specified.



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

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

Reply via email to