Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

scm command line (3.0.1.1) errors out because of whitespace in stream name

This is happening on Linux. The scm command line returns an ambiguous selector error when there are whitespace characters in the stream name.

We are using a groovy script to invoke scm via the Java ProcessBuilder. The command is being passed as a string array, which means that the stream name is a cell in the array.

This works okay on Windows, but is failing on Linux. Is this a defect with the RTC SCM CLI? Renaming the stream to strip out whitespace characters is not an option. Escaping whitespace characters with "\" works fine on Linux but breaks the command line on Windows.

List stream components
	 command: scm --non-interactive list components  -u **** -P **** -r https://rtc/jazz "xxxx yyyy zzzz Stream"
	 Ambiguous selector "" matched multiple items:
	 Possible matches:
	   (3279) "xxxx yyyy zzzz Workspace"
	   (3280) "dddd eeee ffff Workspace"
	   (2916) "dddd - eeee gggg Stream Workspace"
	   (2898) "DataWarehouseSyncWorkspace"
	
FYI - there is only one unique stream with the name that is being queried. Running this on Windows confirms it.

Thanks,

Vivek

0 votes



One answer

Permanent link
are u going to wrap the comandline in a shell script? If so, on the .sh on *IX add the code to escape the spaces


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 32

Question asked: Aug 01 '12, 12:35 p.m.

Question was seen: 4,551 times

Last updated: Aug 01 '12, 3:03 p.m.

Confirmation Cancel Confirm