Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17317

JAX-RS v2 APIs return XML when wt=json specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • main (10.0), 9.7
    • v2 API
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              gerlowskija Jason Gerlowski
              gerlowskija Jason Gerlowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m