Bug 820650 - JBossAS 5 plugin: when redeploying the same war, original file is renamed
Summary: JBossAS 5 plugin: when redeploying the same war, original file is renamed
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent, Content, Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: ---
: RHQ 4.5.0
Assignee: Stefan Negrea
QA Contact: Mike Foley
Depends On: 914763
Blocks: EMBJOPR-366 824151 824502
TreeView+ depends on / blocked
Reported: 2012-05-10 15:11 UTC by Filip Brychta
Modified: 2013-09-01 10:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 824151 (view as bug list)
Last Closed: 2013-09-01 10:10:18 UTC

Attachments (Terms of Use)
deployedscreenshot (113.86 KB, image/png)
2012-05-10 15:12 UTC, Filip Brychta
no flags Details
historyScreenshot (180.69 KB, image/png)
2012-05-10 15:12 UTC, Filip Brychta
no flags Details
newPackageScreenshot (124.89 KB, image/png)
2012-05-10 15:13 UTC, Filip Brychta
no flags Details

Description Filip Brychta 2012-05-10 15:11:42 UTC
Description of problem:
I deployed a standalone web application on JBossAS 5 using JON (create child>web application). When i redeploy the same war (content>new>upload new package), original file in jBoss deploy directory is renamed and application is unreachable using original URL.

Version-Release number of selected component (if applicable):
Version: 3.1.0.GA
Build Number: 07775cb:4ccefd7

How reproducible:

Steps to Reproduce:
1.deploy a new standalone web application on JBoss: select inventory on JBoss resource, than create child>web application
2.redeploy the same war: go to content>new>upload new package (see newPackageScreenshot.png)
Actual results:
original file helloworld.war in jboss-eap-5.1/jboss-as/server/default/deploy was renamed to helloworld.war-6204127540627021664
Package name shown on portal is correct (see historyScreenshot.png and deployedScreenshot.png)

Expected results:
Only version is updated

Comment 1 Filip Brychta 2012-05-10 15:12:12 UTC
Created attachment 583608 [details]

Comment 2 Filip Brychta 2012-05-10 15:12:43 UTC
Created attachment 583609 [details]

Comment 3 Filip Brychta 2012-05-10 15:13:13 UTC
Created attachment 583610 [details]

Comment 5 Stefan Negrea 2012-05-23 15:24:25 UTC
The AS5 deployer uses the file name as-is to determine the name of the app to be updated/deployed. Instead of adding the random UUID to the archive to be deployed, add the random UUID to a temp folder name and then download content there (leaving the file name unchanged). This issue has been fixed for both farmed and non-farmed deployments.

master branch commits:


Comment 6 Heiko W. Rupp 2013-09-01 10:10:18 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.

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