+++ This bug was initially created as a clone of Bug #769986 +++ Description of problem: The JSF UI incorrectly populates the version and display version for uploaded packages. Also, the version is a required field which forces users to type information that could be discovered later. How reproducible: Every time. Steps to Reproduce: 1. Inventory a Tomcat server (or JBoss AS4 or AS5) 2. Go to the Content tab of a war resource 3. Upload a new package for the resource 4. Review rhq_package_version table entries created by the command. 5. Review the installation history for the resource. Actual results: In the database, version is the value entered by the user in the UI, and the display version is empty. The installation history shows incorrect versions for the installed packages. Expected results: In the database, the version is the SHA256 of the uploaded content, and the display version is the version entered by the user. The installation history should show the display version if not empty (if empty then default to version). Additional info: The version field should be optional going forward. This could be discovered and reported back by the agent. If the user actually enters one then it will be preserved, however if the user leaves this field black then the discovery process will attempt to retrieve display version from the actual manifest. This BZ supports the overall set of enhancements required by the Content System. --- Additional comment from mfoley on 2012-01-23 15:31:19 EST --- 2nd verification step for QE UI Test (applicable to BZ 761593, 767247, 767393, 769986) Setup: 1) RHQ server started, RHQ agent running 2) Inventoried Tomcat Server, JBoss AS4 or JBoss EAP5.1 3) A sample war application to be deployed to the application server Stimulate: 1) Navigate in the UI to the selected application resource, content tab, history subtab. 2) Navigate to the New subtab. 3) Upload a new war package for the resource. Follow the guided UI but do change the version field to something unique. 4) Navigate in the UI to the resource that was just updated to the Content tab Verification steps: 1) Verify that after Step 1, the Full Package Audit Trail table, version column has either a normal number (eg. 1.2.3) or sha256. The version field should not be empty. 2) Verify after Step 4 the new application has been actually deployed on the application server. Check the file system where the application server deploys content. 3) Verify after Step 4 the new application has RHQ-Sha256 attribute in the manifest. 4) Verify after Step 4 the content tab, history subtab has the following: a) Full Package Audit Trail table has the correct package information marked as Discovered, including correct version. b) Completed Requests table has information regarding the request submitted from the CLI, including submitted version.
release/jon3.0.x branch commits: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=28709241cf61c555ddcdd71d99e57b38cbf00e48 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=ab3710c6dd68bba0d0694a80dc2cbfe3090ed76e
Moving to ON_QA as new RC 4 available to test in: https://brewweb.devel.redhat.com//buildinfo?buildID=198384
Created attachment 562315 [details] verification image
uploaded image to document the verification
Bulk closing of old issues in VERIFIED state.