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

How-to unlock a folder under RTC source control

I have to take care for several RTC/CLM projects.
In one RTC 3.0 and one CLM 3.0.1 project users have locked a FOLDER (not a file) under RTC source control.

It's no problem to unlock a file:

a) Eclipse client
RightClick -- Team -- Unlock...

b) Web client
MousePoint -- on right site: Unlock

c) Commandline
scm login ...
scm lock list ...
scm lock release ...
scm logout ...

But how can I unlock a folder?!

Both clients didn't offer the unlock option (menu point).
And also the scm command does not work:

lock release
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=/com.ibm.team.scm.doc/topics/r_scm_cli_lock_release.html

D:\>scm lock list --repository-uri project-a --stream "Project-A Team Stream" --component "Project-A Team Default Component" --owner abc --verbose
R (1008) "/folder_a/subfolder" >

D:\>scm lock release --repository-uri project-a --stream "Project-A Team Stream" --component "Project-A Team Default Component" --force -R folder_a/subfolder
Problem running 'lock' 'release':
Unexpected item type: Folder

BTW I tried it as JazzAdmin (and JazzProjectAdmin) so that it is not a permission related issue.
And unfortunately the users can't remember how they have locked the folder.

Did I have any chance to do it with the REST API?

Any idea is welcome. Thanks, Markus

1 vote


Accepted answer

Permanent link
This can happen when performing an action in the web ui on a folder (ie. delete folder) and not completing the action (ie. navigating to another page without canceling).

You can unlock it with the Eclipse client by going to Search > Jazz Source Control > Locks. Search for those locks and you can unlock them from the results.

See the work item on exposing unlocking folders in the web ui. https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/160971
Ralph Schoon selected this answer as the correct answer

4 votes

Comments

You search the locks and should see the locks in the result view. On the result, right click and select the context menu unlock. 

As explained in the answer, you need to use an Eclipse client for this. In the Web UI, you need to open the element to see the menu actions to unlock. If you can't open the item, you won't see the unlock.

As explained in the answer, you need to use an Eclipse client for this. In the Web UI, you need to open the element to see the menu actions to unlock. If you can't open the item, you won't see the unlock. If you can open the item, but you don't see an unlock you are stuck as well.

I've opened Document how to unlock folders in SCM (347379) so that we document the workaround that Tim described.

Ken

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
× 12,019
× 1,202
× 115
× 67
× 14
× 3

Question asked: Sep 26 '11, 3:37 p.m.

Question was seen: 12,721 times

Last updated: Oct 10 '17, 2:24 p.m.

Confirmation Cancel Confirm