If set default page is invalid, thousands of XHR requests are made #1496
Labels
🐛 Bug
Issues marked with this label indicate unintended program behaviour that needs correction.
🟢 Low priority
Issues marked with this label are actively being worked on if nothing serious is on the list.
👍 PR-ok
Issues marked with this label are good candidates for being accepted in a pull request.
Description
Related to #1455. If the default page set in Local Storage is set to an invalid value (such as an old installation), navigating to an invalid page causes thousands of XHR requests to be made.
Steps to reproduce
localStorage["asf-ui:settings:default-view"] = "\"home\""
in console)Expected behavior
The invalid value is replaced by the default value and network activity is normal.
Current behavior
The invalid value remains, the user is not automatically redirected to a working page, and ~10000 requests to the IPC API can be made in around a minute, even if the user navigates to a working page from there.
Screenshots
Additional information
This behaviour does not present itself on the IPC password screen, only once logged in. Even though this can be easily remedied by manually changing the setting, it may not be apparent to all users, leading to excess resource consumption.
Thanks,
Elliott
The text was updated successfully, but these errors were encountered: