Created attachment 598519 [details] An example repository package with a sha256 hash of 4e6fac41c12242f199a9aa82eab29e40b827e688da1f2210838545783137a5da Description of problem: Unable to upload content to a repository. Version-Release number of selected component (if applicable): 3.1.0 How reproducible: Always Steps to Reproduce: 1. Start JON system 2. Create a new **Repository** 1. Navigate to the **Administration** page 2. From the left navigation-tree, expand and select **Content / Repositories** 3. Select the **Create New** button 4. Set **Name** to `Test Repo` 5. Click **Save** 3. Upload whispirDeploy.js to new repository (**order is very important**): 1. Navigate to the **Administration** page 2. From the left navigation-tree, expand and select **Content / Repositories** 3. Click **Test Repo** 4. In the **Upload New Package** section, click the **Upload File...** button 5. Click the **Add...** button 6. Browse to and select the whispirDeploy.js file 7. Click the **Upload** button 8. In the **Upload New Package** section, set the following: * **Type** **Server-side CLI Script** 9. Click the **Create Package** button Actual results: Failed to create package [mypackage.js] in repository. Cause: javax.ejb.EJBException:org.rhq.enterprise.server.plugin.pc.content.PackageDetailsValidationException: The version part of '[sha256=4e6fac41c12242f199a9aa82eab29e40b827e688da1f2210838545783137a5da]' isn't an OSGi version string. Expected results: Package content should be uploaded and appear in the **Packages** section of the page. Additional info: The order of the steps is very important. The issue only occurs if you upload the file first. On the other hand, if you set the **Name** and **Type** fields prior to uploading the new package, the error does not occur. The issue appears to deal with how default values are derived from the actual uploading of the package file. Perhaps version can't be determined from the package file and therefore, it is set to a default value that does not reflect the value entered or displayed in the UI?
As per 8/20 triage 8/20 pushing to JON312
BZ 840650 has the fix in master
As this is MODIFIED or ON_QA, setting milestone to ER1.
Created attachment 806020 [details] repo.png
verified please get verification screen-shot attached