Skip to content

SOLID SERVER: Switching file directories causes the server to crash #590

@tonypioneer

Description

@tonypioneer

Describe the Bug

In Solid File Browser, if we switch the current directory to another directory (such as Home or POD Root) while it is still loading, the Solid server will crash.

This issue will happen in all the Solid servers, including the servers running the latest version of CSS.

To Reproduce

It is a consistently reproducible problem and can be reproduced as follows:

  • Run the SolidUI Example App (branch: tony/153_refactor_file_browsing_code)
  • Open the All POD Files page. While the page is still loading, click the Back to POD Root button. The server will then stop.

The key point in step two is to switch directories while the File Browser is still loading the file list of the current directory.

Expected Behaviour

When switching to another directory before the current one has finished loading, the ongoing loading process should be stopped and the new directory should start loading. The server should not crash in this situation.

Context

Where has the issue been observed:

  • Android
  • Chrome
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Closing Criteria

Checklist for closing the issue:

  • No errors from make prep
  • All tests pass make qtest
  • When switching to another directory before the current one has finished loading, the ongoing loading process should be stopped and the new directory should start loading.
  • The server should not crash in the situation above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions