Skip to content

For some notes, note history is available but all entries show blank contents in the UI #12104

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

Open
mrjo118 opened this issue Apr 14, 2025 · 0 comments
Labels
bug It's a bug

Comments

@mrjo118
Copy link
Contributor

mrjo118 commented Apr 14, 2025

Operating system

Windows

Joplin version

3.3.4

Desktop version info

No response

Current behaviour

A user has stated: "In Joplin in Windows in note history in the note properties I see the previous versions, but when I select a date, it doesn't show any text, and when I recover it all I get is a blank note."
See https://discourse.joplinapp.org/t/recovering-erased-note/44862/

I think there is a potential issue with note history normalisation here. I too have seen this issue before and have it with one of my current notes. It may be related to changing a large amount, or possibly the entire note content in one go. Because for the note that it is affecting, I replace the entire contents from a local txt file whenever I make updates to it.

I have a short note history ttl of 3 days set, but I have 3 revisions for the note currently, and for all of the revisions for this note when selected from the UI, they show the contents as completely blank. For the note in question, it is 133,087 characters long

Looking at the 3 matching entries for the note id in the revisions table of the sqlite db, I can confirm that none of the revision entries contain the full note at the relevant state in time, but they only have the recent changes

Expected behaviour

When revisions are updated / deleted, there should always remain one revision entry which includes a snapshot of the full note at the point where the note history is cut off. The note history preview and restoration should also work correctly for all notes where revisions are available, rather than displaying empty note contents

Logs

No response

@mrjo118 mrjo118 added the bug It's a bug label Apr 14, 2025
@mrjo118 mrjo118 changed the title Note history for some notes is available, but all entries are blank show blank contents in the UI Note history for some notes is available, but all entries show blank contents in the UI Apr 14, 2025
@mrjo118 mrjo118 changed the title Note history for some notes is available, but all entries show blank contents in the UI For some notes, note history is available but all entries show blank contents in the UI Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

1 participant