How to access gasoline truck page data from UI designer

1
+1
-1

I'm trying to access data from a mysql database using gasoline truck page.
When i test the query within the gasoline page it returns the rusults correctly, so I believe i did setup the datasource properly.
However when i try to access the query directly using the same user logged in I get a 403:
http://localhost:8080/bonita/portal/custom-page/custompage_gasolinetruck...

also when accessing the query from External API in UI Designer, no results are returned:
..//portal/custom-page/custompage_gasolinetruck/?page=custompage_gasolinetruck&action=query&queryId=crmLeads&imie=Adam
I did add permissions like:
GET|portal/custom-page/custompage_gasolinetruck=[testPermission]
in the resources-permissions-mapping-custom.properties file
as well as
profile|User=[testPermission]
profile|Administrator=[testPermission]
in the custom-permissions-mapping.properties

I'm testing on Windows 10 with Bonita Studio CE 7.7.4 and page_gasolinetruck 1.6.1

Did I miss something in the configuration or am I using wrong url to acces the query data?

2 answers

1
0
-1

Hello,

I am facing same issue but with version 7.11.4 and version 2021.1, I removed the profile part and still getting 403 all the time. Also the version I am using is 1.8

Any thoughts on what I could have done wrong? Thank you!

Comments

Submitted by Pierre-yves Monnet on Tue, 02/23/2021 - 03:35

Hello,

Could you try the version 1.8.1 uploaded today?

Attention, if you register the application in a PROFILE or in an APPLICATION, URL will be different. And if you want to test it from scratch in a browser / REST tool, pay attention to give the X-Bonita-API-Token in the REST CALL.

Best

1
0
-1

Hello,
After version 7.6, I detected this behavior too.
Remove the profile in the security part of your request, and it should work.
It's on my todo list!

See you,

Notifications