Bug 840649
Summary: | Upload of package content to repository fails due to .PackageDetailsValidationException: The version part of '[sha256=<sha256 hash>]' isn't an OSGi version string. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> | ||||||
Component: | Content | Assignee: | Lukas Krejci <lkrejci> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | JON 3.1.0 | CC: | ahovsepy, lkrejci, myarboro | ||||||
Target Milestone: | ER01 | ||||||||
Target Release: | JON 3.2.0 | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 840650 (view as bug list) | Environment: | |||||||
Last Closed: | Type: | Bug | |||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 840650 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
As per 8/20 triage 8/20 pushing to JON312 As this is MODIFIED or ON_QA, setting milestone to ER1. Created attachment 806020 [details]
repo.png
verified please get verification screen-shot attached |
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?