[#5641] - /rest/permission PUT service doesn't accept valid permission descriptor

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

According to Chapter 2.4.2 of JasperReports-Server-Web-Services-Guide.pdf "... To set a permission use either
method and include the permission descriptors (objectPermissionImpl) such as those returned by the GET method."

However URI format returned by GET service is not accepted by PUT method. Resource not found error 404 is raised.
<URI>repo:/path/to/resource</URI>

After code analysis it turned out that for first validation (RESTPermission.isValidObjectPermission, RESTPermission.canUpdateObjectPermissions methods) format of URI should be different:
<URI>/path/to/resource</URI>

For second step, putting permission itself, ObjectPermissionServiceImpl.putObjectPermission method expects URI in format:
repo:/organizations/<tenantId>/path/to/resource

Note, that such URI is not accepted by initial validation described above.

alexeypryadko's picture
Joined: Feb 14 2012 - 12:13am
Last seen: 9 years 2 months ago
Feedback