Bug 840649 - Upload of package content to repository fails due to .PackageDetailsValidationException: The version part of '[sha256=<sha256 hash>]' isn't an OSGi version string.
Summary: Upload of package content to repository fails due to .PackageDetailsValidatio...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Content
Version: JON 3.1.0
Hardware: All
OS: All
unspecified
high
Target Milestone: ER01
: JON 3.2.0
Assignee: Lukas Krejci
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 840650
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-16 19:49 UTC by Larry O'Leary
Modified: 2018-11-28 19:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 840650 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
An example repository package with a sha256 hash of 4e6fac41c12242f199a9aa82eab29e40b827e688da1f2210838545783137a5da (176 bytes, text/javascript)
2012-07-16 19:49 UTC, Larry O'Leary
no flags Details
repo.png (558.79 KB, image/png)
2013-10-01 14:46 UTC, Armine Hovsepyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 164123 0 None None None 2012-07-16 19:52:01 UTC

Description Larry O'Leary 2012-07-16 19:49:30 UTC
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?

Comment 1 Charles Crouch 2012-08-29 16:05:15 UTC
As per 8/20 triage 8/20 pushing to JON312

Comment 2 Lukas Krejci 2013-06-28 14:32:18 UTC
BZ 840650 has the fix in master

Comment 3 Larry O'Leary 2013-09-06 14:33:35 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.

Comment 4 Armine Hovsepyan 2013-10-01 14:46:13 UTC
Created attachment 806020 [details]
repo.png

Comment 5 Armine Hovsepyan 2013-10-01 14:47:48 UTC
verified
please get verification screen-shot attached


Note You need to log in before you can comment on or make changes to this bug.