You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2018/01/20 22:56:05 UTC

[ambari] branch branch-2.6 updated: AMBARI-22806.Unable to delete files from HDFS using Ambari File View when Ambari Views is accessed via Knox(Venkata Sairam) (#145)

This is an automated email from the ASF dual-hosted git repository.

jaimin pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.6 by this push:
     new 1683660  AMBARI-22806.Unable to delete files from HDFS using Ambari File View when Ambari Views is accessed via Knox(Venkata Sairam) (#145)
1683660 is described below

commit 168366039fcf020edb4fd6fd8c398f15dfc267c1
Author: Venkata Sairam Lanka <ve...@gmail.com>
AuthorDate: Sun Jan 21 04:26:02 2018 +0530

    AMBARI-22806.Unable to delete files from HDFS using Ambari File View when Ambari Views is accessed via Knox(Venkata Sairam) (#145)
---
 .../org/apache/ambari/view/commons/hdfs/FileOperationService.java     | 4 ++--
 .../views/files/src/main/resources/ui/app/services/file-operation.js  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/FileOperationService.java b/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/FileOperationService.java
index 6fa1056..44b97e7 100644
--- a/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/FileOperationService.java
+++ b/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/FileOperationService.java
@@ -323,7 +323,7 @@ public class FileOperationService extends HdfsService {
    * @param request remove request
    * @return response with success
    */
-  @DELETE
+  @POST
   @Path("/moveToTrash")
   @Consumes(MediaType.APPLICATION_JSON)
   @Produces(MediaType.APPLICATION_JSON)
@@ -380,7 +380,7 @@ public class FileOperationService extends HdfsService {
    * @param request remove request
    * @return response with success
    */
-  @DELETE
+  @POST
   @Path("/remove")
   @Consumes(MediaType.APPLICATION_JSON)
   @Produces(MediaType.APPLICATION_JSON)
diff --git a/contrib/views/files/src/main/resources/ui/app/services/file-operation.js b/contrib/views/files/src/main/resources/ui/app/services/file-operation.js
index 09bb67f..50309a1 100644
--- a/contrib/views/files/src/main/resources/ui/app/services/file-operation.js
+++ b/contrib/views/files/src/main/resources/ui/app/services/file-operation.js
@@ -72,7 +72,7 @@ export default Ember.Service.extend(FileOperationMixin, {
     };
     var adapter = this.get('store').adapterFor('file');
     return new Ember.RSVP.Promise((resolve, reject) => {
-      adapter.ajax(opsUrl, "DELETE", {data: data}).then(
+      adapter.ajax(opsUrl, "POST", {data: data}).then(
         (response) => {
           return resolve(response);
         }, (rejectResponse) => {

-- 
To stop receiving notification emails like this one, please contact
['"commits@ambari.apache.org" <co...@ambari.apache.org>'].