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)
...
-
User Privileges: The user
TestJazzAdmin1
has JazzAdmin privileges.
-
Environment: RTC server version (please specify if known), Java version, etc.
-
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
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.