Closed trysdyn closed 1 year ago
Thanks for opening :)
@trysdyn thanks for reporting! spotted it right away, was a very simple little bug i introduced when moving to our updated caching system. it would successfully delete the domain block from the database, but then the call to invalidate it from the cache was missing a required "lookup" key (it's a fancy system that lets us cache objects under multiple different keys)
fix should be in main now :). let us know how you get on!
Closed by https://github.com/superseriousbusiness/gotosocial/pull/1158
[edit] or at least, it should be -- feel free to reopen the issue if it's not fixed ofc
Confirmed closed yes; thanks so much :)
Describe the bug with a clear and concise description of what the bug is.
Attempting to edit a domain block to add a new private comment put GtS in a state where I could no longer work with domain blocks until a restart. Attempting to edit blocks silently did not reflect in the DB and attempting to delete blocks worked, but produced errors in the log. Restarting fixed all issues.
What's your GoToSocial Version?
v0.5.0 git-8942a70 (note the incorrect point release number; this is a <1wk old pull)
GoToSocial Arch
amd64 binary
Browser version
Any
What happened?
GtS cache/db interaction began acting strangely when working with domain blocks. Replication steps below explain better.
After trying to edit a domain block to add a comment, changes stopped being reflected until I tried to delete the block, at which point I received a web frontend JSON error and this error emitted in the logs (I have scrubbed the domain I actually blocked and replaced it with BLOCKED.DOMAIN):
Despite the error, deleting the block worked but trying to re-add it was silently not reflected in the DB. I could fix this state by restarting GtS, leading me to believe it's a caching issue.
What you expected to happen?
Given the repro steps below...
How to reproduce it?
Anything else we need to know?
I know I shouldn't be using main/HEAD in production. But hey, I get to catch stuff like this :)