You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure, but it might be related to creating a Note with special characters in the title like MyNote() #36 äöü (which fails) and then trying to rename it to a sane name. As my installation seems broken i can't test reproduce reproductoi steps
Can anybody give me a hint how to fix the duplicate key error without loosing data?
Steps to reproduce
Create a note with a title like MyNote() #36 äöü
Get an error; try to rename
Regularily receive HTTP 500 errors on client side and error messages on server side
thanks for your detailed bug report! It looks like there was a critical change in Nextcloud 21 regarding database errors (see nextcloud/server#25091), that I wasn't aware of. This breaks a special error handling in the Notes app.
Unfortunately, I'm currently on vacation, so I can't release a fix in the next days. Maybe you could try a hotfix? You would have to change line 128 of lib/Service/MetaService.php: please replace \Doctrine\DBAL\Exception\UniqueConstraintViolationException with \OCP\DB\Exception.
With this hotfix, any duplicate key error should be ignored. That is okay, since it's just about a meta data cache and a duplicate key error can happen if there are multiple requests at the same time. But I'm unsure if this is true in your case.
You mention the title MyNote() #36 äöü as being problematic. In fact, this title should work without any problems. Are there any other log entries regarding this issue?
Thanks, @korelstar for your helpful and extensive reply and your quick fix. I was also on the road so unable to test your hotfix. Today I already updated to the fresh release and it seems it fixes this issue.
Sorry for my late reply and really many many thanks for fixing so quickly!
Not sure, but it might be related to creating a Note with special characters in the title like
MyNote() #36 äöü
(which fails) and then trying to rename it to a sane name. As my installation seems broken i can't test reproduce reproductoi stepsCan anybody give me a hint how to fix the duplicate key error without loosing data?
Steps to reproduce
MyNote() #36 äöü
Expected behaviour
No errors should happen
Actual behaviour
Server
Log files
The text was updated successfully, but these errors were encountered: