Skip to content

If set default page is invalid, thousands of XHR requests are made #1496

Closed
@pointydev

Description

@pointydev

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

  1. (To emulate an old installation, run localStorage["asf-ui:settings:default-view"] = "\"home\"" in console)
  2. Navigate to any invalid ASF-ui page, such as the root: http://localhost:1242
  3. Observe network activity

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugIssues marked with this label indicate unintended program behaviour that needs correction.👍 PR-okIssues marked with this label are good candidates for being accepted in a pull request.🟢 Low priorityIssues marked with this label are actively being worked on if nothing serious is on the list.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions