Bug 759156

Summary: Upload of plugin fails with "zip error" when deleted one exists
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 4.2CC: dlackey, hrupp, smillidge
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Heiko W. Rupp 2011-12-01 09:42:08 EST
Deploy a plugin into the server.
delete it
ui is showing it as gone.

upload that plugin again and see the following pop up in the UI (and server log)

Failed to scan for updated plugins. [1322750254929] java.lang.Exception:File [/im/testing/jon-server-3.0.0.CR4/jbossas/server/default/deploy/rhq.ear/rhq-downloads/rhq-plugins/jopr-jboss-cache-plugin-4.2.0.JON300.CR4.jar] is not a valid jarfile - it is either corrupted or file has not been fully written yet.

In fact the uploaded plugin is perfect and a valid jar file, but what happens is that the UI is by default not
showing deleted plugin. The old version is still lingering around and thus preventing the deployment of the new one.

Workaround is to click on "show deleted", then purge the old one and then re-try the upload.