Details
-
Enhancement
-
Resolution: Won't Do
-
Minor
-
None
-
jboss-fuse-6.3
-
None
-
%
Description
When we create a version in fabric as 1.0.0_DEV001 is considered as 1.0.
However, in fabric:version create we didn't get any errors.
JBossFuse:karaf@root> version-create 1.0.0_DEV001 Created version: 1.0.0_DEV001 as copy of: 1.0 JBossFuse:karaf@root>
In the source: https://github.com/jboss-fuse/fabric8/blob/1.2.0.redhat-6-3-x/fabric/fabric-api/src/main/java/io/fabric8/api/VersionSequence.java
The VersionSequence Class is not handling non numeric characters.
if you have 1.0.0_DEV001 and 1.0.0_DEV002 as version numbers it is considered as 1.0 ( in the sequence comparator)
Versions are considered to be digit only and separated by dot.