Bug 1099485 - Repeated upload of content for resource not backed by content does not work
Summary: Repeated upload of content for resource not backed by content does not work
Alias: None
Product: RHQ Project
Classification: Other
Component: Content, Core UI
Version: 4.10,4.11,4.12
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: RHQ 4.12
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
Depends On:
Blocks: 1099492
TreeView+ depends on / blocked
Reported: 2014-05-20 12:50 UTC by Lukas Krejci
Modified: 2014-12-15 11:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1099492 (view as bug list)
Last Closed: 2014-12-15 11:36:40 UTC

Attachments (Terms of Use)

Description Lukas Krejci 2014-05-20 12:50:18 UTC
Description of problem:

Some resource types allow for uploading content that they are not fully backed by (i.e. their creation type is not content).

For example Linux platforms can accept RPM files, JBossAS4/5 resources can accept jar files to be put in lib, etc.

The first attempt at deploying such files through the resource's content tab succeeds, but any further attempt at doing so will fail with the user unable to even upload the content to deploy.

Version-Release number of selected component (if applicable):
4.10.0 and onwards, caused by commit 863048e054750d0b35f69cdc83594928e5c2603e

How reproducible:

Steps to Reproduce:
1. Go to a linux platform resource
2. Go to Content/New subtab
4. Click "UPLOAD FILE..."
5. In the pop up window, click "Add..."
6. Select any file
7. Click "Upload"
8. The popup will close and the name of the uploaded file will appear next to the "UPLOAD FILE..." button
9. Click "Cancel"
10. Go to step 3

Actual results:
The second attempt at uploading the file will fail with garbage in the upload popup.

Expected results:
repeated uploads work

Additional info:
This is a regression introduced by BZ 1000065.

Note that the "Cancel" step can be replaced by actually finishing the upload and still any further attempts at uploading any new file will fail.

I did not discover any other remedy to this situation but to actually RESTART the RHQ server (logging out and logging back in DOESN'T help). That is why I marked the severity as high.

Also note that this bug is present in the JON 3.2.0 and onwards.

Comment 1 Lukas Krejci 2014-05-20 13:02:20 UTC
commit 76f9e174ed62be4742f35a91bd3e9aa02934a81e
Author: Lukas Krejci <lkrejci@redhat.com>
Date:   Tue May 20 14:59:55 2014 +0200

    [BZ 1099485] Fix JSF file upload popup for all upload locations

Comment 2 Heiko W. Rupp 2014-12-15 11:36:40 UTC
Bulk close of items fixed in RHQ 4.12

If you think this is not solved, then please open a *new* BZ and link to this one.

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