69
Views
2
Comments
Handling "RoleName role required" log error for Screen or DataAction access

Hello,

In my project we want to disable the log for Security Exception (because we already analysed and all log were related to same cause, so we dont want to have those logs in our plate during some period of time), but for some reason, OutSystems only raise exception for screen security exception and not for data action access security exception. 

And because of that, we can only disable screen security log error and not data action security log error.

Cenario when this will happen: when the user is already in screen for some period of time, and lost the session. And if user click in some button those 2 exception will be trigger.


Anyone know how to solve it?

Thanks in advance.


Odairson,

Data actions are technically server side actions, called as REST APIs from the client's browser.

As such, the global exception handlers may not apply when being ran from an unknown requestor.

I would suggest adding individual security exception handlers to your data actions, as the local handlers will take precedence if they exist.


Braxton

This new implementation might help:

https://success.outsystems.com/documentation/11/setup_and_maintain_your_outsystems_infrastructure/setting_up_outsystems/disable_registered_role_required_error_logs/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.