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

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

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!

0 votes

Comments

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 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
× 11,089
× 7,613
× 1,442

Question asked: Nov 12 '24, 5:50 a.m.

Question was seen: 1,102 times

Last updated: Nov 13 '24, 2:48 a.m.

Confirmation Cancel Confirm