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

Got "CRJAZ1319E Read access is not permitted" when obtaining workspace from UUID

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!

0 votes



One answer

Permanent link
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!

0 votes

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
× 10,926
× 343

Question asked: Oct 13 '14, 5:28 a.m.

Question was seen: 4,966 times

Last updated: Oct 17 '14, 11:42 a.m.

Confirmation Cancel Confirm