Skip to content

Bug: init_helper.dart fails if encryption directory already exists on the server #604

@Miduo666

Description

@Miduo666

Describe the Bug

In solidpod\lib\src\solid\utils\init_helper.dart, the initialization logic incorrectly throws an exception if the encryption directory is not present in the dirUrls list (the list of missing directories to be created).

Since dirUrls only contains directories that do not yet exist, if the encryption folder has already been created (e.g., from a previous partial initialization), it will be absent from this list, triggering a false-positive error. This prevents existing accounts from being re-initialized or updated with new directory structures

To Reproduce

Manually create an encryption folder in a Solid Pod (or use a partially initialized account).

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
  • [Issue specific requirements.]

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