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

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

Tan Pham created AMBARI-21644:
---------------------------------

             Summary: 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.0


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)