MatrixSynapse/synapse
Richard van der Hoff 375162b3c3
Fix redaction authentication (#5700)
Ensures that redactions are correctly authenticated for recent room versions.

There are a few things going on here:

 * `_fetch_event_rows` is updated to return a dict rather than a list of rows.

 * Rather than returning multiple copies of an event which was redacted
   multiple times, it returns the redactions as a list within the dict.

 * It also returns the actual rejection reason, rather than merely the fact
   that it was rejected, so that we don't have to query the table again in
   `_get_event_from_row`.

 * The redaction handling is factored out of `_get_event_from_row`, and now
   checks if any of the redactions are valid.
2019-07-17 16:52:02 +01:00
..
_scripts Run Black. (#5482) 2019-06-20 19:32:02 +10:00
api Return a different error from Invalid Password when a user is deactivated (#5674) 2019-07-15 11:45:29 +01:00
app Remove pointless description 2019-07-16 11:45:57 +01:00
appservice Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
config Clean up arg name and remove lying comment 2019-07-16 11:39:40 +01:00
crypto Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
events Add origin_server_ts and sender fields to m.replace (#5613) 2019-07-05 17:20:02 +01:00
federation Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
groups Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
handlers Return a different error from Invalid Password when a user is deactivated (#5674) 2019-07-15 11:45:29 +01:00
http Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
logging Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
metrics Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
module_api Remove access-token support from RegistrationHandler.register (#5641) 2019-07-08 19:01:08 +01:00
push Add default push rule to ignore reactions (#5623) 2019-07-05 17:37:52 +01:00
replication Remove access-token support from RegistrationHandler.register (#5641) 2019-07-08 19:01:08 +01:00
res/templates Change password reset links to /_matrix. 2019-06-11 11:34:33 +01:00
rest fix typo: backgroud -> background 2019-07-12 15:29:40 +01:00
server_notices Run Black. (#5482) 2019-06-20 19:32:02 +10:00
state Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
static Revert redundant changes to static js 2019-06-26 22:46:23 +01:00
storage Fix redaction authentication (#5700) 2019-07-17 16:52:02 +01:00
streams Fix /messages on workers when no from param specified. 2019-06-24 10:06:51 +01:00
util Fixes to the federation rate limiter (#5621) 2019-07-05 11:10:19 +01:00
__init__.py 1.1.0 2019-07-04 11:44:09 +01:00
event_auth.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
notifier.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
python_dependencies.py Add basic opentracing support (#5544) 2019-07-11 10:36:03 +01:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py cleanups 2019-06-27 00:37:41 +01:00
server.pyi Run Black. (#5482) 2019-06-20 19:32:02 +10:00
types.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
visibility.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00