Description of problem: Upload a bundle zip created with jar (or possibly some other utility or custom Java app) and you might get this: java.lang.IllegalArgumentException: Negative initial size: -1 This was fixed in master, but never merged to a release branch. This is the master sha commit: d7f47571f3e41951eb97fd07c5890c59a938d88a I also just recently looked around and saw two other places where zip entries were assumed greater than 0. The commit is: f52524eb36fa6863d5500e35971b7e86d268f009 That latter commit only affects file template bundles (so if you are using ant bundles, you are unaffected) and affects simple bundle size calculations which are not used anywhere important so everyone is going to be unaffected with that too. So the important fix is that d7f4757 one, unless you are using file template bundles, in which case that second one is probably needed as well.
this was fixed as per the description. We don't need it cherry picked to other branches right now. So closing this to ON_QA. I'm not sure how to test this since i'm not sure if I ever saw it myself. I guess one quick test would be to take a bundle zip file and re-compress it using some other tool (like "jar") and see if you can upload and deploy the bundle. The bundle doesn't have to be complicated. A single file in the bundle distro file is all that is needed.
tested interactively RHQ 4.0 as follows: created a bundle with .jar and uploaded it no issues. additionally uploaded and deleted other bundles. also uploaded bundles from URL.
Bookkeeping - closing bug - fixed in recent release.