[
https://issues.apache.org/jira/browse/HDFS-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129261#comment-13129261
]
Arpit Gupta commented on HDFS-2460:
-----------------------------------
Also i think we should throw an error before redirect in the case when the user
does not have priv to write to the dir or file.
If we are doing a redirect should we not check all the conditions before the
redirect?
> webhdfs returns content type text/html when an error is thrown, we should
> return application/json
> --------------------------------------------------------------------------------------------------
>
> Key: HDFS-2460
> URL: https://issues.apache.org/jira/browse/HDFS-2460
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Arpit Gupta
> Assignee: Tsz Wo (Nicholas), SZE
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira