-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Lost ALL comments after deleting one comment #4091
Comments
Hi @PiHead567, I can only think there are maybe permission scenarios at play, which may be hiding comments from being visible (which would be closer to the error log seen). Are you able to reproduce this, following your provided steps, on our demo instance? |
Thank you for your fast reply and taking your time.
Shall I check database when reproducing the bug (before, in between, after)? |
When I previously mentioned permissions, I was referring only to role/access permissions within BookStack itself. There's been nothing to indicate issues with file/system/web-server permissions so no need to alter those I think.
Yes, the ID column on the comments table should be a unique primary key column. I sometimes hear about strange database scenarios when the non-native mysql PHP extension is in use. That's rare (and I thought the alternative is no longer used) but shared host providers like this can often do strange things. |
@PiHead567 Yeah, that looks good. Looks like they might have custom-built packages though, makes reproduction a little trickier. Within the database, if you expand the |
I have now my 3rd installation on my Web server: a fresh clean setup with current version of BookStack (v23.02.1). The mess starts, when I import a backup of my productive data in the data base. Can it be, that I import something which mangles my data base? At the end of our evaluation phase I did a data base transfer from my local box to the productive environment on the web server. My local box is a RaspberryPi with MariaDB, my hoster provides MySQL .... If it helps, take a look to the data base of my playground. My productive data was imported and I deleted afterwards to a minimum (2 pages, 2 comments). Bug is still reproduceable. I'll send you a BookStack invitation and credentials of the data base account by mail. Feel free to do what you want, it's a playground. |
I'm having good progress today: |
Here is the final confirmation that our platform works fine and the reported problem is solved. |
Thanks for reporting back @PiHead567, good to hear you found the core issue. It is surprising that the default
I am surprised you didn't come across more issues across other data types/models. I'd imagine other issues would start to appear. Since you managed to find and solve the problem, I'll go ahead and close this off. |
You made me curious and I checked:
I din't know why. I rely on mysqldump for the moment .. |
Describe the Bug
We are in the late setup phase (luckily !!), just 2 users for the moment. We had a bunch of comments existing, because we pushed our tasks between us using comments.
My coleague (having admin rights) deleted one of my comments, with the result that ALL comments are deleted, over all pages. We played around in various scenarios and also with editor rights and found out:
Steps to Reproduce
Expected Behaviour
the not deleted comment shall be still available
Screenshots or Additional Context
Browser Details
Firefox Extended Support Release 102.8.0esr (64bit)
Exact BookStack Version
V23.01.1
PHP Version
8.1.14-he.0
Hosting Environment
I have a WebPack at hoster HostEurope. i have SCP access to my document root and SSH console with very limited functionality (no GIT, but PHP available).
Remark: it was not so easy to figure out for me (I'm not a web server expert), but after success in installation I was 2 weeks amazed of BookStack working 100% stable.
The text was updated successfully, but these errors were encountered: