You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vs...@apache.org on 2017/06/23 06:24:43 UTC

ambari git commit: AMBARI-21084.Files view on IE 11- On Concatenating files or downloading, the concatenated or downloaded file occupies the entire UI.(Venkata Sairam)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 462a3e8b4 -> 75cb56ef7


AMBARI-21084.Files view on IE 11- On Concatenating files or downloading, the concatenated or downloaded file occupies the entire UI.(Venkata Sairam)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/75cb56ef
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/75cb56ef
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/75cb56ef

Branch: refs/heads/branch-2.5
Commit: 75cb56ef7384ef733d4338e221ce3675f7241b3a
Parents: 462a3e8
Author: Venkata Sairam <ve...@gmail.com>
Authored: Fri Jun 23 11:54:32 2017 +0530
Committer: Venkata Sairam <ve...@gmail.com>
Committed: Fri Jun 23 11:54:32 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/ambari/view/filebrowser/DownloadService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/75cb56ef/contrib/views/files/src/main/java/org/apache/ambari/view/filebrowser/DownloadService.java
----------------------------------------------------------------------
diff --git a/contrib/views/files/src/main/java/org/apache/ambari/view/filebrowser/DownloadService.java b/contrib/views/files/src/main/java/org/apache/ambari/view/filebrowser/DownloadService.java
index 7a1c7a1..81ac40d 100644
--- a/contrib/views/files/src/main/java/org/apache/ambari/view/filebrowser/DownloadService.java
+++ b/contrib/views/files/src/main/java/org/apache/ambari/view/filebrowser/DownloadService.java
@@ -113,7 +113,7 @@ public class DownloadService extends HdfsService {
       ResponseBuilder result = Response.ok(fs);
       if (download) {
         result.header("Content-Disposition",
-          "inline; filename=\"" + status.getPath().getName() + "\"").type(MediaType.APPLICATION_OCTET_STREAM);
+          "attachment; filename=\"" + status.getPath().getName() + "\"").type(MediaType.APPLICATION_OCTET_STREAM);
       } else {
         FileNameMap fileNameMap = URLConnection.getFileNameMap();
         String mimeType = fileNameMap.getContentTypeFor(status.getPath().getName());
@@ -277,7 +277,7 @@ public class DownloadService extends HdfsService {
       };
       ResponseBuilder response = Response.ok(result);
       if (request.download) {
-        response.header("Content-Disposition", "inline; filename=\"concatResult.txt\"").type(MediaType.APPLICATION_OCTET_STREAM);
+        response.header("Content-Disposition", "attachment; filename=\"concatResult.txt\"").type(MediaType.APPLICATION_OCTET_STREAM);
       } else {
         response.header("Content-Disposition", "filename=\"concatResult.txt\"").type(MediaType.TEXT_PLAIN);
       }