Skip to content

The secret edit link points to the wrong map after a database restore. #3075

@gislars

Description

@gislars

After restoring a database backup, an edit link for an anonymous map may point to a different map if the original map no longer exists in the restored database and a new map has been assigned the same ID.

A user reported that a secret editing link sent by email no longer works and now points to a different map that the user did not create.

It happened on https://umap.openstreetmap.de which is running release 3.4.0

Steps to reproduce:

  1. Create a DB backup.
  2. Create an anonymous map.
  3. Generate a secret editing link.
  4. Restore the DB backup.
  5. Create a new anonymous map (with the same ID).
  6. Use the original secret editing link. Or compare the newly generated link with the original link, they are the same.
  7. The link will point to the new map instead of the original one (which has been deleted).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions