Skip to content

Conversation

mirsch
Copy link
Contributor

@mirsch mirsch commented Mar 4, 2018

This PR is a suggestion to resolve #1623. It changes the hash (and filenames) for notes from 20 character hash to an uuid.
Filename before: fc16de274b5ac2d604ed.cson new filename ce53287e-a77c-49c1-9d41-5d9fb0d60a3b.cson the change is backwards compatible. Old filenames can still be loaded.
Note: it will break in very rare cases if you have the same filename/hash in multiple stores.

Not only in links but also inside the application the combination of storage.key and note.key was used. Multiple times both keys were concatenated and split again. I also removed this because the uuid is global unique and not by storage. The same applies to folders, but that's not in the scope of this PR.

@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Mar 5, 2018
@Rokt33r Rokt33r self-requested a review March 7, 2018 17:02
@Rokt33r Rokt33r removed the awaiting review ❇️ Pull request is awaiting a review. label Mar 12, 2018
@Rokt33r Rokt33r merged commit 1c283f8 into BoostIO:master Mar 12, 2018
mirsch added a commit to mirsch/Boostnote that referenced this pull request Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove volatile hash from note links
3 participants