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

ASF subversion and git services commented on SOLR-17317:
--------------------------------------------------------

Commit af2a3c742b50004c69fe2be48c51f904ebdff012 in solr's branch 
refs/heads/main from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=af2a3c742b5 ]

SOLR-17317: Correct 'wt' interpretation for v2 APIs (#2496)

Prior to this commit a bug was causing 'wt=json' to return XML content.
This is now fixed - the problem was a missing clause in a switch-case
statement.

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