Random Server Restrict Bug

Wappler Version : 3.9.7
Operating System : NA
Server Model: PHP
Database Type: MySQL
Hosting Type: AWS

Expected behavior

What do you think should happen?

Once your user has logged in, then all server restricts should work consistently.

Actual behavior

What actually happens?

Sometimes they all stop working and return unauthorised. It occurs completely randomly, and has taken me several weeks of working with my client to get a screenshot of the dev console to know more of what occurs.

When it happens, I think what goes wrong is consistent each time. Here is the process… lots of images to illustrate it are all below.

  1. The user logs in okay.

  2. A number of server actions are called which normally all run okay.

  3. Occasionally, one of them (search_activities.php) returns unauthorised, and then all the subsequent ones return unauthorised too.

  4. If the user restarts their browser and logs in again, it all works okay.

The problem occurs on average every 2nd-5th time they log in. It also seems to occur more for one client I have than another.

Am happy to supply any other information you need!

Best wishes,
Antony.

Normal operation

When the unauthorised problem occurs (all red calls are showing unauthorised)

(Note that while there are two calls to search_activities.php, the second one which causes the unauthorised to occur happens after some user interaction, whereas the first one which works okay happens as part of the login process)

search_activities.php

sa_search_activities

search_activities.php - security provider

search_activities.php - security restrict

sr_search_activities

Community Page
Last updated: