Fix Script in scoped applications

andriyko
Giga Contributor

Fuji release, patch4.

I want to update record in oauth_entity table from include script, but I get the error:

Security restricted: Read operation against 'oauth_entity' from scope "x_my_scope" has been refused due to the table's cross-scope access policy


The Fix Script looks like a possible workaround and I can update the record from the Fix Script.


Do limitations present in scoped applications somehow apply to Fix Scripts? (or will apply in next Fuji releases?)

I would like to know whether it is safe to rely on Fix Scripts.

1 ACCEPTED SOLUTION

Last I tested, fix scripts run in the context of the app scope they belong to. This makes sense, otherwise it would be a security flaw if they let an app modify an out-of-scope table the is set to prevent access.


Here's a write up I did a while ago.


FujiForty - Get Your Fix — CAVUCode



It sounds like you'll need to have the customer manually make the change, or provide them an update set that will make the change for them since you won't be able to modify them from you app.


View solution in original post

5 REPLIES 5

@john.roberts The link was not working for me. Can you share it? thanks!