-
Type:
Bug
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Done
-
Affects Version/s: jboss-fuse-6.2
-
Fix Version/s: jboss-fuse-6.3
-
Component/s: Fabric8 v1
-
Labels:
-
Steps to Reproduce:
-
Sprint:6.3 Sprint 4 (Mar 28 - Apr 29)
When using profile-rename without specifying version, it should take the default version according to the help:
JBossFuse:karaf@root> profile-rename --help
|
DESCRIPTION
|
fabric:profile-rename
|
|
|
Rename the specified version of the source profile
|
|
|
SYNTAX
|
fabric:profile-rename [options] profile name new profile name
|
|
|
ARGUMENTS
|
profile name
|
Name of the profile.
|
new profile name
|
New name of the profile.
|
|
|
OPTIONS
|
--help
|
Display this help message
|
--version
|
The profile version to rename. Defaults to the current default version.
|
-f, --force
|
Flag to allow replacing the target profile (if exists).
|
However, if you use it without the version, it results in:
JBossFuse:karaf@root> profile-rename test test2
|
Error executing command: versionId
|
|
|
2015-06-18 12:48:38,128 | ERROR | l Console Thread | Console | ? ? | 34 - org.apache.karaf.shell.console - 2.4.0.redhat-620129 | Exception caught while executing command
|
java.lang.IllegalStateException: versionId
|
at io.fabric8.api.gravia.IllegalStateAssertion.assertNotNull(IllegalStateAssertion.java:46)
|
at io.fabric8.git.internal.GitDataStoreImpl.getRequiredProfile(GitDataStoreImpl.java:736)
|
at io.fabric8.internal.ProfileServiceImpl.getRequiredProfile(ProfileServiceImpl.java:171)
|
at io.fabric8.api.Profiles.renameProfile(Profiles.java:401)
|
at io.fabric8.commands.ProfileRenameAction.doExecute(ProfileRenameAction.java:83)
|
at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
|
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
|
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]
|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
|
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
|
at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[18:org.apache.aries.proxy.impl:1.0.4]
|
at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[18:org.apache.aries.proxy.impl:1.0.4]
|
at io.fabric8.commands.$ProfileRename995105324.execute(Unknown Source)[mvn:org.apache.aries.proxy/org.apache.aries.proxy.impl/1.0.4:]
|
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[34:org.apache.karaf.shell.console:2.4.0.redhat-620129]
|
Using the command with the version works OK