is that possible and how can we control the write right in files/folders level within rational team concert 4.0.6
![]()
Richar Cai (17●1●11●16)
| asked Sep 11 '14, 12:56 p.m.
edited Sep 12 '14, 10:40 a.m. by Ralph Schoon (63.3k●3●36●46)
Dear All,
May I have your help? We have business need to restrict the "write" permission for files/folder in RTC4.0.6 or RTC4.0.7. This is not in component level but requests in file/folder level. is that possible and how? Thank you very much! Best regards, RicharCAI |
2 answers
![]()
Richar Cai,
Yes, you will have to add a precondition trigger on the 'Deliver Phase 2 (server)' action. Although it is not as automatic as you may prefer. The first thing you should do is create a RTC Team Area or new RTC Project role within the RTC Project to identify the people who will end up with write access (either adding them to the new RTC team or giving them membership to the new role, whichever you end up choosing.) Once that is done, open your Project (I'm using Eclipse), go to Process Configuration -> Team Configuration -> Operation Behavior -> Source Control -> Deliver Phase 2 (server). Check the 'Preconditions...' checkbox and add the trigger 'Restrict Changes to Items'. At the bottom of the precondition make sure to select the stream that the trigger should resolve paths against (different streams can have the content located in different places if users decided to move code around, which is why I believe this is required.) After that you select the component and drill down to the files underneath the directory structure you want to lock down. Unfortunately it doesn't appear there is any easy way to recursively set a parent directory so you'll have to add all the files. Remember that this is triggered on a deliver operation. Users can still checkin changes to these files but they won't be able to deliver them, so you may get some developer grief that it wasn't caught sooner. If this is an issue, you may want to look at putting in locks on the files to make it more obvious to them early-on. I believe this also doesn't lock out directories so users may be able to add new files underneath that directory. If you need more control over directories as well, there is another precondition on the same phase called 'Restrict Changes by Item Name' where you can restrict specific change types to folders (as well as files.) https://jazz.net/library/article/1075 Comments This is not entirely correct. The advisor is intended to restrict changes to individual_items. You cannot use that advisor to say "all files under file /x/y/z cannot be modified".
@rcjusen
Sure. If you put in 'test.txt' you can tweak the advisor to block both test1.txt and test2.txt and if a change set contains one or both of these items the delivery will be blocked.
Just tested this out, and Remy Suen is correct.
|
![]()
https://jazz.net/library/article/215
It sounds like you want item permissions. You can set them on individual files and folders (which can apply to all children).
|
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.