Bug 1300387

Summary: HTTP 404 error on downloading a file after SSA
Product: Red Hat CloudForms Management Engine Reporter: Vadim Rutkovsky <vrutkovs>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.5.0CC: dajohnso, hkataria, jhardy, jprause, mfeifer, mpovolny, obarenbo, vrutkovs
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:smartstate
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1303101 (view as bug list) Environment:
Last Closed: 2016-06-29 15:31:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1303101    

Description Vadim Rutkovsky 2016-01-20 16:03:20 UTC
Description of problem:
Files found after host scanning cannot be downloaded

Version-Release number of selected component (if applicable):
5.5.2.1

How reproducible:
Always

Steps to Reproduce:
1. Add a RHEVM 3.4 provider
2. Set correct credentials for any host
3. Run SmartScan analysis for the host
4. After scanning task is complete open host details
5. Go to Files -> /etc/shadow
6. Click 'Download' link

Actual results:
HTTP 404 error page appears:

"The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved."


Expected results:
File download starts

Additional info:
File contents is displayed correctly, so probably either incorrect URL generated or httpd doesn't handle the link correctly.

Generated link: https://<cfme url>/host/filesystems/filesystem_download/<file id>

Comment 1 Milan Zázrivec 2016-01-25 13:40:06 UTC
Is there perhaps an instance showing this problem? (I cannot reproduce this
on my end).

Thanks.

Comment 3 Shveta 2016-01-27 19:43:37 UTC
Assigning to add test case

Comment 4 Milan Zázrivec 2016-02-01 15:33:57 UTC
https://github.com/ManageIQ/manageiq/pull/6457

Comment 5 CFME Bot 2016-02-01 21:36:57 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3b498f4c37066a74929700d01bcb99241327abc1

commit 3b498f4c37066a74929700d01bcb99241327abc1
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Mon Feb 1 16:33:00 2016 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Mon Feb 1 18:20:52 2016 +0100

    Add filesystem_download link to host filesystems page
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1300387

 app/controllers/application_controller.rb  | 5 +++++
 app/controllers/vm_common.rb               | 5 -----
 app/views/layouts/_item.html.haml          | 2 +-
 config/routes.rb                           | 1 +
 spec/routing/host_routing_spec.rb          | 6 ++++++
 spec/views/layouts/_item.html.haml_spec.rb | 2 +-
 6 files changed, 14 insertions(+), 7 deletions(-)

Comment 7 CFME Bot 2016-02-15 15:38:36 UTC
Detected commit referencing this ticket while ticket status is MODIFIED.

Comment 8 Satyajit Bulage 2016-05-18 10:29:18 UTC
Able to download required file(s).

Verified Verison:-5.6.0.7-beta2.6.20160516171555_b1be31f

Comment 10 errata-xmlrpc 2016-06-29 15:31:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348