Got "CRJAZ1319E Read access is not permitted" when obtaining workspace from UUID
Yung-Hsiang Chan (34●9●13)
| asked Oct 13 '14, 5:28 a.m.
edited Oct 17 '14, 11:42 a.m. by Jennifer Cianchetta-Riordan (251●2)
I want to retrieve each workspace which belongs to corresponding builddefinition.
I first got all the builddefinitions under a project area.
Then, I use the following code to get the workspace.
IBuildProperty iBuildProperty = iBuildDefinition.getProperty(IJazzScmConfigurationElement.PROPERTY_WORKSPACE_UUID);
if(iBuildProperty !=null){
IWorkspaceHandle wsHandle = (IWorkspaceHandle)
IWorkspace.ITEM_TYPE.createItemHandle(com.ibm.team.repository.common.UUID.valueOf(
iBuildProperty.getVal ue()) , null);
IWorkspace ws = (IWorkspace) repo.itemManager().fetchCompleteItem(wsHandle, IItemManager.DEFAULT,
null);
}
But sometimes I got the exception:"CRJAZ1319E Read access is not permitted. The user, , tried to read one or more items that have the following type: Workspace".
But I do have the permission to read them on my Eclipse.
Why is it?
Thanks!
|
One answer
I found that some of the workspaces contain more than one components which I don't have permissions.
So even if I can see the workspace on eclipse but I still can't access it.
I got he same exception message after I click into the workspace.
So the way I call the API is fine.
Thanks!
|
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.