Not able to pass orgId in the HTTP URL via j_username

0
Hi,
 
I am running JRS-Pro 6.3.0 on AWS.
I am embedding the report in my web app using the HTTP URL and passing j_username for authentication.
This works fine when I am passing userid of the server root. But if I pass userid created under an organization, it returns the error code 400.
 
The URL looks like below:
http://<AWS IP>/jasperserver-pro/flow.html?_flowId=viewReportFlow&decorate=no&viewAsDashboardFrame=true&reportUnit=/organizations/org1/Reports/Report1&j_username=user1|org1&j_password=user@123
 
I have assigned this 'user1' to the role ROLE_USER and made sure that both this, user and the role are given permission 'Execute Only' for the entire organization 'org1'.
 
Please help me resolve this.
 
Thanks,
Amit
 
amitsd's picture
305
Joined: Mar 16 2017 - 1:40am
Last seen: 1 year 5 months ago

2 Answers:

1

Some app servers now enforce standrads compliance that don't allow | in URLs. Try using the encoded character  %7C instead.

elizam's picture
3854
Joined: Mar 5 2012 - 9:19am
Last seen: 1 month 6 days ago
0

Thank you elizam. Using %7C solved the problem.

amitsd's picture
305
Joined: Mar 16 2017 - 1:40am
Last seen: 1 year 5 months ago
Feedback