This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
"Invalid filter json" error message should use an appropriate error code #13661
Labels
A-Sync
defects related to /sync
A-Validation
500 (mostly) errors due to lack of event/parameter validation
good first issue
Good for newcomers
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Z-Cleanup
Things we want to get rid of, but aren't actively causing pain
From
synapse/synapse/rest/client/sync.py
Lines 145 to 154 in a6895dd
We should return
M_NOT_JSON
if the decode fails.We should probably also defer the
set_timeline_upper_limit
call untilself.filtering.check_valid_filter(filter_object)
has passed?The text was updated successfully, but these errors were encountered: