[closed] scm share command shows "ambigious workspace/stream" but UI only shows one
I have a single workspace called "MY WORKSPACE". I can login to the web UI and see it, and if I search on "MY WORKSPACE" I get just that one.
However, on the command line, I am trying to issue an SCM SHARE command it it tells me that there are apparently more than one workspaces that match.
The command I am using is:
It comes back with this msg:
I only see one "MY WORKSPACE" so I have no idea why scm command says there are two. Anything I can do to see what the problem is? This is RTC version 4.
Thanks!
However, on the command line, I am trying to issue an SCM SHARE command it it tells me that there are apparently more than one workspaces that match.
The command I am using is:
scm share -r "MY-RTC-HOST" "MY WORKSPACE" "MY COMPONENT" dirToBeShared
It comes back with this msg:
Ambigious selector "MY WORKSPACE" matched multiple items:
Possible matches:
(1000) "MY WORKSPACE"
(1001) "MY WORKSPACE"
Problem running 'share':
Ambiguous workspace/stream "MY WORKSPACE"
I only see one "MY WORKSPACE" so I have no idea why scm command says there are two. Anything I can do to see what the problem is? This is RTC version 4.
Thanks!
The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon May 22 '23, 2:58 a.m.
Accepted answer
I did a quick test, and unfortunately, it appears that the command line does not filter based on workspaces that are visible to you. So if someone has a private workspace (that you cannot see) that has that same name, the command line will generate that error message.
I've submitted work item scm command line complains about "ambiguous workspace selector" when someone else's private workspace has the same name as mine (246409) for this issue.
I've submitted work item scm command line complains about "ambiguous workspace selector" when someone else's private workspace has the same name as mine (246409) for this issue.
One other answer
For now, you could call 'scm list workspace -r repouri -c your_userid which will return workspaces owned by you. You can then use the the 4 digit alias shown in brackets in your commands instead of the workspace name. Note: the aliases cannot be used across systems or it should not be used in scripts.
To list the uuid of the workspace, run 'scm -u y list workspace ...'.