It's all about the answers!

Ask a question

Why do I get "Reason Code: unauthorized" when importing from ClearCase?


Michal Hladik (2112) | asked Jun 27 '12, 11:24 a.m.
edited Jul 03 '12, 3:37 p.m. by Geoffrey Clemm (29.2k23035)
Hi, can anyone give us an advice how to import components from clearcase to rtc properly?

Currently we are facing this error which occures only for some components:

Processed activity "Error while trying to transfer: CONTROLLABLE_RESOURCE|M:/DO_NOT_USE_Brno_RTC_import_Int/CORE_COMPS/ACQUISITION
    Reason Code: unauthorized
    Reason: CRRTC4023W The root at "CONTROLLABLE_RESOURCE|M:/DO_NOT_USE_Brno_RTC_import_Int/CORE_COMPS/ACQUISITION" could not be transferred.
The synchronizer was not able to complete the requested operation
Fix any errors reported in the rest of the log file. " in 18 second(s)
...
Problem running 'synchronizeStream':
Synchronization blocked by error:
javax.wvcm.WvcmException: CRRTC4023W The root at "CONTROLLABLE_RESOURCE|M:/DO_NOT_USE_Brno_RTC_import_Int/CORE_COMPS/ACQUISITION" could not be transferred.
The synchronizer was not able to complete the requested operation
Fix any errors reported in the rest of the log file.
javax.wvcm.WvcmException: CRJAZ1319E Illegal read access:  User "ccbuilder" attempted to read item(s) having the following type(s): Component
javax.wvcm.WvcmException: CRJAZ1319E Illegal read access:  User "ccbuilder" attempted to read item(s) having the following type(s): Component
com.ibm.team.repository.common.PermissionDeniedException: CRJAZ1319E Illegal read access:  User "ccbuilder" attempted to read item(s) having the following type(s): Component
Build failed. Exit value was 3.

I'm logged as a ClearCase admin, synchronizer runs under user with ProjectOwner and ScrumMaster permission. He is even project administrator. It's a strange behaviour as it fails only for some components.

Thx for answer

Comments
Harmen Leenders commented Aug 17 '12, 3:00 a.m.

I got the same for another component :-)


Geoffrey Clemm commented Aug 17 '12, 6:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Did you verify that these components are owned by the project area, and not an individual? Being ProjectOwner and ScrumMaster does not give you permission to read private components owned by a user account.

2 answers



permanent link
Masabumi koinuma (46115) | answered Jun 27 '12, 6:10 p.m.
JAZZ DEVELOPER
Hello Michal,

It seems the error is thrown from the RTC side instead of the ClearCase side. The way the synchronizer works for the initial importing is that it looks up an RTC SCM component that matches the name with ClearCase side, and import files under the RTC SCM component. It is probably good idea to check the permission on the RTC SCM component that has the same name as ClearCase side. The component name in the ClearCase side is up to whether you use UCM, base ClearCase, or base ClearCase sub-VOB component. Please refer this page for more information.

https://jazz.net/help-dev/clm/topic/com.ibm.team.connector.scm.cc.doc/topics/r_compmap.html

Comments
Geoffrey Clemm commented Jun 28 '12, 4:44 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

One thing I'd suggest looking for is whether the RTC component with that name is a "private" component (owned and visible only to the user that created it) or a "public" component owned by the team/project area. If so, it would be visible to the user that created it, but not to the synchronizer account. Assuming this is the problem, change the owner of those components to be the team/project area, and just re-run the sync request.


permanent link
Harmen Leenders (324) | answered Oct 19 '12, 6:49 a.m.
Could it be because of the history of some file is 'broken' after a filename is renamed in clear case and the old one 'deleted' after which the history 'link' is gone? 

Comments
Masabumi koinuma commented Oct 19 '12, 4:19 p.m.
JAZZ DEVELOPER

Well, it is probably nothing to do with the file rename or deletion in the history. If the error is like above, ( I mean, if the log contains something like:
CRJAZ1319E Illegal read access:  User "xxxx" attempted to read item(s) having the following type(s): Component ), it is simply a permission issue on the RTC component. Please make sure your synchronizer account has appropriate role in the team area AND also make sure the RTC component's access control allows the synchronizer account to access it.

Your answer


Register or to post your answer.