-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Export data admin command is broken. #10908
Comments
When I am ty to fix it by removing this line: synapse/synapse/app/admin_cmd.py Line 190 in 8aaa4b7
I get this new error:
@erikjohnston Do you have a hint to fix it? Is it a missing import? |
It looks like the issue is that we recently changed My question is, since we are already checking that the |
Indeed, but I think this goes back further than the recent changes you mention (#10897?). Running git log -G worker_log_file the first two hits are bb7fdd8 and 6a85cb5. The former is part of Patrick's PR; the latter is part of (the pleasingly-numberered) #5678 from 2019. Has this script been broken since 2019? Surely we'd have noticed sooner...
I think so. 6a85cb5 seems to be removing So yeah, my vote is to drop that line. |
(Though as @dklimpel notes, there might be more fixing required afterwards.) |
seems like it has, and nobody at element uses it. If we're going to have it, we should probably have some CI to check it keeps working (like we do for the port_db script). |
Okay excellent. I will write a test case to keep an eye on this functionality going forwards, fix this issue, and hopefully fix anything else that might have broken in the interval. |
Running
python -m synapse.app.admin_cmd -c <config_file> export-data <user_id>
results in:The effect of this is that its currently not possible to export a users data, e.g due to a GDPR request.
c.f. #10900
The text was updated successfully, but these errors were encountered: