Bug 871538 - [bundles] file not found exception when using BundleManager.createBundleVersionViaFile
Summary: [bundles] file not found exception when using BundleManager.createBundleVersi...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 16:23 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-30 16:27:31 UTC
Embargoed:


Attachments (Terms of Use)
CLI output (8.52 KB, application/octet-stream)
2012-10-30 16:23 UTC, Libor Zoubek
no flags Details
sample bundle (1.54 KB, application/zip)
2012-10-30 16:24 UTC, Libor Zoubek
no flags Details

Description Libor Zoubek 2012-10-30 16:23:30 UTC
Created attachment 635686 [details]
CLI output

Description of problem: I am not able to upload bundle-dist-file via CLI. It seems to be regression, because I cannot reproduce this on JON 3.1.1.GA


Version-Release number of selected component (if applicable):
Version: 4.6.0-SNAPSHOT
Build Number: aba99ed

How reproducible: always


Steps to Reproduce:
1. have a bundle distribution file (attached) and put it in "/tmp/bundle-war.zip"
2. start up CLI - CLI must run on different host as server
3. BundleManager.createBundleVersionViaFile("/tmp/bundle-war.zip");
  
Actual results: You get FileNotFoundException (see attached CLI output). According to log it looks like *server* is looking for a bundle on server machine, but this file should be uploaded from client. If you put "/tmp/bundle-war.zip" to server's machine, you'll succeed. 


Expected results: bundle file is read on client machine and is uploaded to remote server.

Comment 1 Libor Zoubek 2012-10-30 16:24:05 UTC
Created attachment 635687 [details]
sample bundle

Comment 2 Libor Zoubek 2012-10-30 16:27:31 UTC
Ah, taking back .. I've just read documentation that says:

"distributionFile - a local Bundle Distribution file. It must be read accessible by the RHQ server process."

the reason why I wasn't able to reproduce on JON 3.1.1 was, that at that time CLI was running on same host as server.


Note You need to log in before you can comment on or make changes to this bug.