RTC/SCM tools 4.0.x.
There are several scm commands in a batch to login, load, unload and logout. In two projects, two users are login and running the similar commands concurrently. The user notice that when 2nd user login, it will replace the 1st user as if they are in the same session. Because of that, the below command failed:
"D:/Program Files/IBM/TeamConcert/scmtools/eclipse/scm" workspace replace-components "JPFV_Stream_Current_Prod workspace" stream "JPFV_Stream_Current_Prod" "JPFV_Comp" -b "ESSRIT201703200386" -r https://xxxxx:9443/ccm
Exception when executing “workspace replace-components”:
User “user2 ” has no permission to access to “JPFV_Stream_Current_Prod workspace”
ERROR :Fetch Baseline : "ESSRIT201703200386" to Component : "JPFV_Comp" failed!
Obviously it is intended that user1 to do the above execution and it has the permission for the workspace. Since user2 somehow replaces user1 after login, it has no permission and throws the exception. If it is not concurrent execution, both users can do the jobs properly.
I was thinking that two different users login should have its own session and uses its own .jazz-scm configuration. What could be wrong here? (Sandbox is different for the two batch executions)
Now the end user tries to workaround the issue by using the same user login. However, as the two batch execution take different time, when one execution completed early, it runs logout command and that leads to another batch execution to be logout as well because it is the same user. I am wondering if using scm --config path and specifying different path for the two logins would help here. If anyone could shed some lights here, it would be appreciated.