Unable to retrieve action logs due to row level security #1353
Labels
area/backend
branch/master
The master branch
priority/high
High priority
type/bug
Something isn't working
Milestone
Describe the bug
calls to '/api/log/action/{testId}' always fail to retrieve the action logs because the logs are inserted as
horreum.system
and retrieved as user roles eitherhorreum.system
or anadmin
user: https://github.com/Hyperfoil/Horreum/blob/master/horreum-backend/src/main/resources/db/changeLog.xml#L3883However, to role allowed on the REST endpoint is
tester
: https://github.com/Hyperfoil/Horreum/blob/master/horreum-backend/src/main/java/io/hyperfoil/tools/horreum/svc/LogServiceImpl.java#L140so, once the action logs have been created, only horreum system can retrieve them, and they are not accessible for users
The text was updated successfully, but these errors were encountered: