Redirect Issue

fronobulax

Developer
Staff member
The script CFStat fetches data from ColdFront. It has been broken for some time as the wiki had migrated. I was running today and the script popped up a box that said the URL had been redirected. It asked if I wanted to resend the form data to the "new" wiki. The redirect notice has a Yes button, No button and an X to close the popup. The problem I had is that when this pop up was on the screen it blocked all other interaction, including options to abort the script or Logout.

This is not good behavior :-)

An obvious solution is to rewrite the script in such a way that the resulting 403 error aborted the script and any looping script that called it.

But it seems like a mafia problem that it can get in a state where the user is frozen out of the UI. Do we add some kind of emergency abort option to blocking pop-ups like this? Something else?

Because I overthink things since this error condition generates a pop up for user interaction, what happens if someone is running headless?

Ideas or suggestions?
 
Back
Top