Bug 747702 - do not accept plugins that have invalid version strings
Summary: do not accept plugins that have invalid version strings
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 4.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-20 20:03 UTC by John Mazzitelli
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2011-10-20 20:03:11 UTC
We should not allow plugins to be deployable if they have invalid version strings (that is, does not follow the OSGi rules for version strings).

For example, if I already deployed a plugin with version "2.0.0" and I later deploy an updated plugin with version "ABC-6.0.0", that "ABC-6.0.0" version string is not valid OSGi version format and our code will assume 2.0.0 is after ABC-6.0.0 (see ComparableVersion class).

OSGi version syntax is:

version ::= major('.'minor('.'micro('.'qualifier)?)?)?
major ::= digit+
minor ::= digit+
micro ::= digit+
qualifier ::= (alpha|digit|'_'|'-')+
digit ::= [0..9]
alpha ::= [a..zA..Z]


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