Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1734

Missing headers in REST response

    XMLWordPrintableJSON

Details

    Description

      REST responses should have the content type header set to JSON.

      The usage REST responses, users; user; groups and group, do not have any headers set as they do not call writeHeaders(w).

      Also in case that the parameters are not set we return a JSON error response object without setting the header (introduced in YUNIKORN-1472). The JSON error response is written before without ever calling writeHeaders(w).

       

      Attachments

        Issue Links

          Activity

            People

              zhuqi Qi Zhu
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: