Skip to content

Prevent creation of notes with the same ResourceId  #16

@kirillt

Description

@kirillt

It is pretty easy to create a pair of text documents with the same content, the same content would result in the same ResourceId. We should prevent creation of resources with duplicated id.

There are 2 ways of solving this:

  1. Calculate ResourceId of note being saved, lookup into the index for this id.
    If the id is already existing — forbid saving of the note.
  2. Automatically add nonce to the note.
    This requires changing structure of a note — it can't be plain text anymore,
    we need to add nonce into separate field of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions