Skip to content
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

Check what happens when a note in a shared folder is deleted #11482

Open
laurent22 opened this issue Dec 9, 2024 · 1 comment
Open

Check what happens when a note in a shared folder is deleted #11482

laurent22 opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
bug It's a bug desktop All desktop platforms high High priority issues

Comments

@laurent22
Copy link
Owner

Ref: #11458 (comment)


Ok I think that makes sense to fix this particular crash then. Also to address his comment:

I own several shares that I made available to other JoplinCloud basic accounts when the ‘read only’ option was not yet available. Later, when I discovered that the ‘read only’ option was offered, I changed these shares to ‘read only’.

Could you please check what happens when a note in a shared folder is moved to the trash? Do we clear the share_id and is_shared property?

As for read-only items, I believe there are checks in place to prevent them from being deleted in general. I think it was only possible in this case maybe due to a bug with share_id not being cleared.

@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented Dec 23, 2024

The issue seems to be this query:

LEFT JOIN folders ON notes.parent_id = folders.id

Sharing the content of a notebook is based on which items have a particular parent_id. When an item is moved to the trash, it still has its original parent ID and is thus shared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues
Projects
None yet
Development

No branches or pull requests

2 participants