It's all about the answers!

Ask a question

PermissionDeniedException when Committing Changes - User with JazzAdmin Privileges Unable to Access Content


Cyril Varghese (112) | asked Nov 12, 5:50 a.m.

I’m developing a custom RTC extension where I commit changes to a workspace using scmService.batchCommit() . However, when I try to commit a specific content hash, I receive a PermissionDeniedException despite the user having JazzAdmin privileges.

Code Snippet:

try {
    scmService.batchCommit(workspaceHandle, new ICommitParameter[]{commitParam}, IScmService.DELTA_PER_INVOCATION, null, null);
} catch (TeamRepositoryException e) {
    writeErrorResponse(resp, "Error committing changes: " + e.getMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
e.printStackTrace();
return;
}
 

Error Details:

com.ibm.team.repository.common.PermissionDeniedException: CRRTC5039E: User TestJazzAdmin1 is not allowed to access content 6BPqzdK2dW_MVaP_ZewLLPoV50WyAm7N0GQ0mu4fQH8
    at com.ibm.team.scm.service.internal.content.VersionedContentService.validateUploadedContentBatch(VersionedContentService.java:4566)
    at com.ibm.team.scm.service.internal.content.VersionedContentService.validateNewlyUploadedContent(VersionedContentService.java:4506)
    ...


  1. User Privileges: The user TestJazzAdmin1 has JazzAdmin privileges.
  2. Environment: RTC server version (please specify if known), Java version, etc.
  3. Attempts to Resolve: I verified that the user has sufficient permissions and tried re-uploading the content, but the issue persists.

Question:

Could this issue be related to specific permissions or restrictions for accessing certain content hashes within VersionedContentService ? Are there additional permissions required that are not covered by JazzAdmin privileges?or is there any problem with commitparameter?

Any guidance on how to address this would be greatly appreciated. Thank you!

Any guidance on how to address this would be greatly appreciated. Thank you!


Comments
Ralph Schoon commented Nov 13, 2:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

JazzAdmin does not grant you any permissions, except you should be able to see pretty much anything. I would consider to add the TestJazzAdmin to the project area and grant them a role. 

Search the SDK for the usage of the API you are using.

Be the first one to answer this question!


Register or 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.