Skip to content

Adding a Storage that you have unlinked once throws an error when unlinking it again #2876

@indrive

Description

@indrive

Current behavior

When adding a storage a second time that you have unlinked before, will throw the following error:

2019-02-08_19-21-35

2019-02-08_19-22-55

This only happens when the storage has folders with notes in them but does not happen when the storage is empty or when the storage has empty folders.

This is error is also thrown when loading Boostnote for the first time:

C:\Users\{Username}\Boostnote\notes doesn't exist
resolveStorageNotes

When a storage is added with a folder and a note for the first time, it throws the following error:

{Storage Location}\notes doesn't exist
resolveStorageNotes..

Attachment folder ("{Storage Location}\attachments\49b4041a-fe96-4cdf-bb6b-621bd6adcf84") did not exist...

Expected behavior

It shouldn't throw an error after adding a storage that you have unlinked before.

Steps to reproduce

  1. Add a new storage
  2. Add a Folder to the new storage
  3. Add a note to that folder you just created in the new storage
  4. Unlink the new storage
  5. Add the new storage again
  6. Unlink it again

Environment

  • Version : v0.11.15
  • OS Version and name : Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.level 1 ❕A bug that caused minor damage: App is still usable, but minor features might not work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions