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.
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.
master branch commits: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=4ba6830d2facb77544c50f0db191bfeca8e057b2 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=e3738bc8c84fa9f42c077db6ee758969c4ddf6a4
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.