forked-synapse/synapse
Richard van der Hoff f90649eb2b Fix 500 on invalid utf-8 in request
If somebody sends us a request where the the body is invalid utf-8, we should
return a 400 rather than a 500. (json.loads throws a UnicodeError in this
situation)

We might as well catch all Exceptions here: it seems very unlikely that we
would get a request that *isn't caused by invalid json.
2017-11-10 09:15:39 +00:00
..
api Add a config option to block all room invites (#2457) 2017-09-19 16:08:14 +01:00
app Merge pull request #2627 from matrix-org/rav/custom_rest_endpoints 2017-11-02 15:18:37 +00:00
appservice Do logcontexts outside ResponseCache 2017-10-25 15:21:08 +01:00
config Add a hook for custom rest endpoints 2017-11-02 14:36:55 +00:00
crypto replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
events replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
federation Add brackets 2017-11-09 10:06:42 +00:00
groups Namespace visibility options for groups 2017-11-09 15:27:18 +00:00
handlers Allow upper-case characters in mxids 2017-11-09 19:36:13 +00:00
http Fix 500 on invalid utf-8 in request 2017-11-10 09:15:39 +00:00
metrics Rearrange metrics 2017-04-05 14:15:09 +01:00
module_api Add more hooks to ModuleApi 2017-11-02 14:37:39 +00:00
push replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
replication replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
rest Register group servlet 2017-11-09 15:49:42 +00:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Fix typo 2017-11-09 15:56:16 +00:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Logging and logcontext fixes for Limiter 2017-11-07 00:48:57 +00:00
__init__.py Bump version and changelog 2017-10-24 14:15:27 +01:00
event_auth.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
notifier.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
python_dependencies.py Make 'affinity' package optional 2017-10-02 18:03:59 +01:00
server.py Merge branch 'develop' into erikj/groups_merged 2017-10-02 16:20:41 +01:00
server.pyi Doc some more dynamic Homeserver methods 2017-10-17 20:51:29 +01:00
state.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
types.py replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
visibility.py Don't filter out current state events from timeline 2017-09-18 17:13:03 +01:00