It's all about the answers!

Ask a question

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

Yung-Hsiang Chan (34913) | asked Oct 13 '14, 5:28 a.m.
edited Oct 17 '14, 11:42 a.m. by Jennifer Cianchetta-Riordan (2512)
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)       
                           iBuildProperty.getVal   ue()) , null); 
    IWorkspace ws = (IWorkspace) repo.itemManager().fetchCompleteItem(wsHandle, IItemManager.DEFAULT, 

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?


One answer

permanent link
Yung-Hsiang Chan (34913) | answered Oct 14 '14, 2:04 a.m.
edited Oct 14 '14, 2:05 a.m.
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.


Your answer

Register or to post your answer.