-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misuse of "Import" erases all history data #5213
Comments
|
Thanks for your reply.
|
|
|
To Reproduce
|
RE replicating btw, I tried to replicate locally but I get an error Import failed: The upload failed, please try again I get warning My assumption here is you have an instance with a modified settings.json and something like abiword or soffice enabled? |
Please provide STR in a clean environment of Etherpad, not a modified one. |
Yeah that's the problem, I don't manage the platform Framapad. I guess it's not so modified. My own version is full of plugins... |
You can spin one up using the docs really quickly/easily, that's probably the best approach to ensure it's clean and we can replicate? |
Just a thought. Image size could be maxing out buffer causing timeslider to not work? An idea, not researched |
Ok... I can reproduce with a clean install :
In my case, the slider can browse the revisions but nothing is displayed. If I CTRL+SHIFT+R the page, the current content is displayed for any revisions. |
ack, gimme 5 will check |
|
What size is the HTML file contents? I was able to get I think STR for that is insert content, import empty HTML file, type some stuff, visit timeslider, click play. |
I think the bug here is #5214 - I made a new issue as to remove the noise. Please can you confirm that in your developer console you see the same error as above? |
The HTML file is 18ko.
Maybe something related to browser's cache... |
Gimme 5 will test with run.sh |
I can still access old revisions(it works fine other than errors in console) when using Can you clear the browser cache and test between |
Ok, I cleared. But I didn't think to look at JS console log, sorry... When I move the revisions slider I get this for each move:
|
Ahhhh, I bet you see a different error because of And just to be 100% sure, you have no plugins installed, correct? |
I just followed the quick install from the git. No plugin, no setttings tweaks, just the basic install. |
Hrm, nope, with minify true I still get the Either way we're firing an error after this edit event, so let's get that resolved first then you can |
https://discord.gg/CWQXkG7K for Discord btw |
Ok perfect. I keep my install for the following investigations! |
After some more play I got the error I deleted all pad contents, did an import of a .html file (which imported blank) and now I get the error. I assume it's related to line numbers. |
This should be fixed by PR #5250. |
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:
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):
The text was updated successfully, but these errors were encountered: