Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2460

webhdfs returns content type text/html when an error is thrown, we should return application/json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.20.205.0
    • None
    • webhdfs
    • None

    Description

      make a create call using rest api's and send an invalid value for parameter overwrite

      Actual Content type returned:

      type text/html; charset=utf-8

      We should return application/json.

      This seems similar to the earlier bug where we had 2 content types being returned. We patched it for success but not for errors.

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              arpitgupta Arpit Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: