[#5640] - /rest/role GET/DELETE services work not as documented

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

According to Chapter 4.4 of JasperReports-Server-Web-Services-Guide.pdf GET method returns list of all available roles: default and created for any tenant (organization).
The real result is different from the documented example, only default roles (with no tenantId) are in the response. Roles created by user (assigned to certain tenantId) are absent.

After REST services code analysis we see that in order to list user defined roles additional parameter must be provided as tenantId search criteria:
http://<host>:<port>/jasperserver-pro/rest/role/|<tenantId>

The similar search criteria must be provided for DELETE method

We suggest to update the documentation. Chapters 4.4, 4.4.3 should contain complete description of possible search criterias.

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