You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Swapan Shridhar (JIRA)" <ji...@apache.org> on 2017/12/08 21:54:00 UTC

[jira] [Commented] (AMBARI-21644) Cannot delete file using ambari files view when proxied through Knox

    [ https://issues.apache.org/jira/browse/AMBARI-21644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284294#comment-16284294 ] 

Swapan Shridhar commented on AMBARI-21644:
------------------------------------------

Moved it to 3.0 as I am started the 2.6.1 release process.

> Cannot delete file using ambari files view when proxied through Knox
> --------------------------------------------------------------------
>
>                 Key: AMBARI-21644
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21644
>             Project: Ambari
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 2.5.1
>            Reporter: Tan Pham
>             Fix For: 2.6.1
>
>
> The problem is with the deleting file in Ambari Files view when proxied through Knox.
> Ambari Files view using: method: *DELETE*, path: *resources/files/fileops/moveToTrash*, body payload: {path: "path_to_delete", recursive: true}
> Knox using Apache HttpClient. HttpClient implementation does not support request body and the the request body is dropped (see org.apache.http.client.methods.HttpDelete).
> To fix this issue, change from DELETE method to POST or PUT method in Ambari Files view.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)