Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21644

Cannot delete file using ambari files view when proxied through Knox

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.1
    • 3.0.0
    • contrib
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tanpv89 Tan Pham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: