[ https://issues.apache.org/jira/browse/SOLR-17317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852893#comment-17852893 ]
ASF subversion and git services commented on SOLR-17317: -------------------------------------------------------- Commit 72e81166b546803900f034aa71f86c4ecf099d53 in solr's branch refs/heads/branch_9x from Jason Gerlowski [ https://gitbox.apache.org/repos/asf?p=solr.git;h=72e81166b54 ] 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