Description of problem: The content repository syncing plugins do not use SHA256 consistently as a checksum. Display version and version are not correctly set and do not follow agent side discovery conventions. How reproducible: Everytime. Steps to Reproduce: 1. Attempt to sync RHQ with a remote package repository. 2. Observe the version and display version for each package version synchronized. Actual results: MD5 is used as the checksum and version of packages. Expected results: The display version and version use the same format as the agent side plugins that discover content. The version format: [sha256=aaa1234..] Additional info: There are five server side plugins available for remote repository syncing. This BZ should focus on consistency with regards to version, display version and SHA256 as the checksum.
Setup: 1) JON server started 2) CSP URL: https://access.redhat.com/jbossnetwork/restricted/feed/software.html?product=all&downloadType=all&flavor=rss&version=&jonVersion=2.0 Stimulate: 1) Navigate to Administration -> Content -> Content Sources -> JBoss CP Patch Feed -> Edit 2) Select Yes from Active radio buttons 3) Type RedHat Network credentials 4) Save 5) Synchronize the repository Verification steps: 1) Verify that after Step 6 there are packages in the synchornized repository 2) Look in the database, rhq_package_version and check display version and version fields. Display version should have the old version content, version should have the following format [sha256=abcd1234]
2nd verification steps Setup: 1) RHQ server started 2) Two sample war archives (eg. sample1.war, sample2.war) Stimulate: 1) Create the following folder tree: /rhqsources <- folder /rhqsources/testrepo <- folder /rhqsources/testrepo/subfolder <- folder /rhqsources/testrepo/sample1.war <- file /rhqsources/testrepo/subfolder/sample2.war <-file 2) Navigate to Administration -> Content -> Content Sources -> Create New -> Local Disk Storage 3) Fill in the fields required with the following info: a) Name of the sources should be testrepo b) Root directory should be /rhqsources c) Package type: JBossAS5 - Web Application (WAR) - WAR File d) Resource type: JBossAS5 - Web Application (WAR) 4) Save 5) Synchronize the repository Verification steps: 1) Verify that after Step 6 there are packages in the synchornized repository a) only sample1.war is present b) sample2.war was not discovered c) there are no synchronization errors 2) Look in the database, rhq_package_version and check display version and version fields. Display version should have the old version content, version should have the following format [sha256=abcd1234]
Some negative test cases for the second test case presented here: 1) Step 1, create /rhqresources/testrepo but leave it empty. No packages should be discovered for the repo. 2) Step 1, create two subfolders underneath /rhqresources/testrepo. Add subpackages in each subfolder. Only packages directly underneath testrepo folder should be discovered. 3) Step 3, name the resource testrepo3. There should be no packages discovered since testrepo3 is not in the subdirectory structure of rhqresources.
master branch commits: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=490ad1f0cdc7f2e7c294dee87f3cc9a9b57ceacf http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=fa0843f28f77f556f2c19e803fd19934e308b571 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=ed3a509e8dd2f306fe1ed857503cf16db45a7723 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=147eaace0daa24890d15a0ab1769266c5d0dc1f6 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=8bd92ab64b02162101aa4efae1155c14836cb44f http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=6263ca50dfe5e168018ed248efb5700b8be55867 http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=6e5faad9e814cb103504ffd81a61b0c495970d15
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.