Why version-create karaf command truncates trailing 0 ?

Solution Unverified - Updated -

Issue

  • Why "create-version" x.10 is misinterpreted as x.1 ?
  • The version-create and version-delete commands ignore trailing zeros in a version. Only when using quotes is the correct version created or deleted. Recreation scenario steps:
JBossFuse:karaf@root> version-create 1.10
Created version: 1.1 as copy of: 1.0

JBossFuse:karaf@root> version-delete 1.1

JBossFuse:karaf@root> version-delete 1.10
Error executing command: Version '1.1' does not exist

JBossFuse:karaf@root> version-create '1.10'
Created version: 1.10 as copy of: 1.0

JBossFuse:karaf@root> version-delete '1.10'
  • This is problem is solved by always using quotes, but is a bug none the less. Because of the available workaround, this bug has been filed with low priority, although other customers might run into more serious issues when unaware of this bug.
  • How to fix this issue?

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content