Skip to content

Misuse of "Import" erases all history data #5213

Closed
@jej

Description

@jej

Describe the bug
I see some closed issues about this, but maybe it worths to reopen it.
I suggested to a friend to use etherpad for a collaboration work. After few days and many modifications, she wanted to import an inline image in the text. She clicked on "Import/Export", picked an image file and didn't care about the warning... Of course the pad was scrambled by a binary text, and the image was not inserted inline as expected by the user. The problem is that now the historic does not show the revisions any more. The revisions are browsable with the slider, but current content only is displayed. All previous revisions seems recorded as usual, but not available.
I tested this on https://framapad.org/fr/ . I don't know what version of etherpad they use.

To Reproduce
Steps to reproduce the behavior:

  1. Write/modify some text, in order to create some revisions.
  2. Click on 'Import/Export'.
  3. Pickup a binary image file (ex. png/jpg)
  4. Import it, acknowledge the warning.
  5. The binary data replace the text. Eventually: erase it and add some text.
  6. Look at the history to see if previous revisions are still displayed.

Expected behavior
It's not a problem if binary data erase the current version, but at least it should be possible to retrieve the previous content of the pad.
Maybe the GUI should be more careful with import. A mandatory checkbox could make the user aware that all the content will be replaced, instead of a simple button.

Server (please complete the following information):

Metadata

Metadata

Assignees

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