Why do I get "Reason Code: unauthorized" when importing from ClearCase?
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
2 answers
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
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.
Comments
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.
Comments
Harmen Leenders
Aug 17 '12, 3:00 a.m.I got the same for another component :-)
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 17 '12, 6:06 a.m.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.