[
https://issues.apache.org/jira/browse/AMBARI-14932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139425#comment-15139425
]
DIPAYAN BHOWMICK commented on AMBARI-14932:
-------------------------------------------
Hi [[email protected]], you are absolutely correct, the redundancy in second
call was done because of one of the side effect. If we had directly hit the
download URL then the error will be thrown when we set 'window.location.href'
with the download URL. So, as the MediaType in that case will be
"application/json" the browser will open up a new tab and display the error in
the new tab. To prevent that scenario and to have a consistent UI two call
approach was taken.
Thanks
> "download zip" does not work
> -----------------------------
>
> Key: AMBARI-14932
> URL: https://issues.apache.org/jira/browse/AMBARI-14932
> Project: Ambari
> Issue Type: Bug
> Components: ambari-views, contrib
> Affects Versions: trunk
> Reporter: Keta Patel
> Assignee: Keta Patel
> Attachments: DownloadService.tiff, adapter.tiff,
> error_after_file_open.tiff, file_1.tiff, file_2.tiff, screenshot.tiff
>
>
> Steps to Reproduce:
> 1. go to "View" - "FILES" - " Create Instance"
> 2. go to hdfs file view
> 3. click "download zip" icon
> The click doesn't download any file. The REST call returns 200 OK status.
> Detailed steps on configuring Views can be found in the link below:
> http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_ambari_views_guide/bk_ambari_views_guide-20150721.pdf
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)