| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* commit '90a28fb47':
Admin API to list, filter and sort rooms (#6720)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| | |
* commit 'ae6cf586b':
Lint + changelog
Remove unused import
Add tests for thumbnailing
Fix typo in _select_thumbnail
|
| | |
|
|\|
| |
| |
| |
| | |
* commit 'aa9b00fb2':
Fix and add test to deprecated quarantine media admin api (#6756)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '5e52d8563':
Allow monthly active user limiting support for worker mode, fixes #4639. (#6742)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '5d7a6ad22':
Allow streaming cache invalidate all to workers. (#6749)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '0e6876007':
Add a DeltaState to track changes to be made to current state (#6716)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit 'b0a66ab83':
Fixup synapse.rest to pass mypy (#6732)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '74b74462f':
Fix `/events/:event_id` deprecated API. (#6731)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '0f6e525be':
Fixup synapse.api to pass mypy (#6733)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit 'ceecedc68':
Fix changing password via user admin API. (#6730)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| |
| | |
* commit 'e9e066055':
Update changelog.d/6747.bugfix
Revert "Newsfile"
Newsfile
Add changelog
Fix empty account_validity config block
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
* commit 'a17f64361':
Add more logging around message retention policies support (#6717)
Fix up changelog
bump version to v1.9.0.dev2
|
| |
| |
| | |
So we can debug issues like #6683 more easily
|
| | |
|
|\|
| |
| |
| |
| | |
* commit '722b4f302':
Fix syntax error in run_upgrade for schema 57 (#6728)
|
| |
| |
| |
| |
| |
| |
| | |
Fix #6727
Related #6655
Co-authored-by: Erik Johnston <erikj@jki.re>
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* commit '3b72bb780':
bump version to v1.9.0.dev1
Precise changelog
Fixup diff
Remove get_room_event_after_stream_ordering entirely
Lint
Rename changelog
Changelog
Correctly order when selecting before stream ordering
Fix typo
Fix instantiation of message retention purge jobs
|
| |\
| | |
| | | |
Fix instantiation of message retention purge jobs
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When figuring out which topological token to start a purge job at, we
need to do the following:
1. Figure out a timestamp before which events will be purged
2. Select the first stream ordering after that timestamp
3. Select info about the first event after that stream ordering
4. Build a topological token from that info
In some situations (e.g. quiet rooms with a short max_lifetime), there
might not be an event after the stream ordering at step 3, therefore we
abort the purge with the error `No event found`. To mitigate that, this
patch fetches the first event _before_ the stream ordering, instead of
after.
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '59dc87c61':
changelog
Log saml assertions rather than the whole response
move batch_iter to a separate module
|
| |\ \
| | | |
| | | | |
Log saml assertions rather than the whole response
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... since the whole response is huge.
We even need to break up the assertions, since kibana otherwise truncates them.
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '2b6a77fcd':
Delegate remote_user_id mapping to the saml mapping provider (#6723)
|
| | | |
| | | |
| | | | |
Turns out that figuring out a remote user id for the SAML user isn't quite as obvious as it seems. Factor it out to the SamlMappingProvider so that it's easy to control.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'a8a50f5b5':
Wake up transaction queue when remote server comes back online (#6706)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This will be used to retry outbound transactions to a remote server if
we think it might have come back up.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
configuration. (#6685)
* commit '5ce0b17e3':
Clarify the `account_validity` and `email` sections of the sample configuration. (#6685)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
configuration. (#6685)
Generally try to make this more comprehensible, and make it match the
conventions.
I've removed the documentation for all the settings which allow you to change
the names of the template files, because I can't really see why they are
useful.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'd386f2f33':
Add StateMap type alias (#6715)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
MSC1756 (#6712)
* commit '38e0e59f4':
Add org.matrix.e2e_cross_signing to unstable_features in /versions as per MSC1756 (#6712)
|
| | |
| | |
| | |
| | | |
MSC1756 (#6712)
|
|\| |
| | |
| | |
| | |
| | | |
* commit '48c3a9688':
Port synapse.replication.tcp to async/await (#6666)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Port synapse.replication.tcp to async/await
* Newsfile
* Correctly document type of on_<FOO> functions as async
* Don't be overenthusiastic with the asyncing....
|
|\| |
| | |
| | |
| | |
| | | |
* commit '19a1aac48':
Fix purge_room admin API (#6711)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'edc244eec':
Remove duplicate session check in web fallback servlet (#6702)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '608bf7d74':
changelog
Handle `config` not being set for synapse plugin modules
Cleanups and additions to the module API
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Some modules don't need any config, so having to define a `config` property
just to keep the loader happy is a bit annoying.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add some useful things, such as error types and logcontext handling, to the
API.
Make `hs` a private member to dissuade people from using it (hopefully
they aren't already).
Add a couple of new methods (`record_user_external_id` and
`generate_short_term_login_token`).
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit '8f5d7302a':
Implement RedirectException (#6687)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Allow REST endpoint implemnentations to raise a RedirectException, which will
redirect the user's browser to a given location.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '28c98e51f':
Add `local_current_membership` table (#6655)
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
Currently we rely on `current_state_events` to figure out what rooms a
user was in and their last membership event in there. However, if the
server leaves the room then the table may be cleaned up and that
information is lost. So lets add a table that separately holds that
information.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b5ce7f587':
Process EDUs in parallel with PDUs. (#6697)
|
| | |
| | |
| | |
| | | |
This means that things like to device messages don't get blocked behind
processing PDUs, which can potentially take *ages*.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'e8b68a4e4':
Fixup synapse.replication to pass mypy checks (#6667)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '1177d3f3a':
Quarantine media by ID or user ID (#6681)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '326c893d2':
Kill off RegistrationError (#6691)
|
| | |
| | |
| | | |
This is pretty pointless. Let's just use SynapseError.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '2d07c7377':
Don't assign numeric IDs for empty usernames (#6690)
|
| | |
| | |
| | |
| | | |
Fix a bug where we would assign a numeric userid if somebody tried registering
with an empty username
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '3cfac9593':
changelog
Pass client redirect URL into SAML mapping providers
Pass the module_api into the SamlMappingProvider
|
| |\ \
| | | |
| | | | |
Updates to the SAML mapping provider API
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | | |
... for consistency with other modules, and because we'll need it sooner or
later and it will be a pain to introduce later.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '803968505':
Allow additional_resources to implement Resource directly (#6686)
|
| | |
| | |
| | |
| | |
| | |
| | | |
AdditionalResource really doesn't add any value, and it gets in the way for
resources which want to support child resources or the like. So, if the
resource object already implements the IResource interface, don't bother
wrapping it.
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit 'feee81997':
Fix exceptions on requests for non-ascii urls (#6682)
comment for run_in_background
|
| | |
| | |
| | | |
Fixes #6402
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '1d16f5ea0':
update install notes for CentOS
changelog
Refuse to start if sqlite is older than 3.11.0
Check postgres version in check_database
Modify check_database to take a connection rather than a cursor
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
this saves doing it on each connection, and will allow us to pass extra options
in.
|
| |/
| |
| |
| | |
We might not need the cursor at all.
|
|\|
| |
| |
| |
| |
| | |
* commit 'd2906fe66':
Allow admin users to create or modify users without a shared secret (#6495)
Fixup changelog
|
| |
| |
| | |
Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
|
| |\ |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '24b2c940f':
1.8.0
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '7c232bd98':
Shuffle the code
Comments
Do not rely on streaming events, as media repo doesn't
Newsfile
Import RoomStore in media worker to fix admin APIs
Move media admin store functions to worker store
|
| |\ \
| | | |
| | | | |
Fix media repo admin APIs when using a media worker.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |/
| | |/| |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit '7caaa29da':
Fix GET request on /_synapse/admin/v2/users endpoint (#6563)
|
| | | |
| | | |
| | | |
| | | | |
Fixes #6552
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '573fee759':
Back out ill-advised notary server hackery (#6657)
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This was ill-advised. We can't modify verify_keys here, because the response
object has already been signed by the requested key.
Furthermore, it's somewhat unnecessary because existing versions of Synapse
(which get upset that the notary key isn't present in verify_keys) will fall
back to a direct fetch via `/key/v2/server`.
Also: more tests for fetching keys via perspectives: it would be nice if we actually tested when our fetcher can't talk to our notary impl.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit 'be29ed7ad':
Correctly proxy remote group HTTP errors. (#6654)
|
| | |
| | |
| | |
| | |
| | | |
e.g. if remote returns a 404 then that shouldn't be treated as an error
but should be proxied through.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '2b6b7f482':
Reword
Change the example from 5min to 12h
Fixup changelog
Fixup changelog
Fixup changelog
Changelog
Update sample config
Fix a typo in the purge jobs configuration example
|
| |\ \
| | |/
| |/| |
Fix a typo in the purge jobs configuration example
|
| | | |
|
| | |
| | |
| | |
| | | |
Have a purge job running every 5min is probably not something we want to advise admins to do as a sort-of default.
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '7f0e706eb':
1.8.0rc1
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit '0ab5853ec':
Changelog
Fix conditions failing if min_depth = 0
|
| |\ \
| | | |
| | | | |
Fix conditions failing if min_depth = 0
|
| | |/
| | |
| | |
| | | |
This could result in Synapse not fetching prev_events for new events in the room if it has missed some events.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '85db7f73b':
Add a background update to clear tombstoned rooms from the directory (#6648)
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Add a background update to clear tombstoned rooms from the directory
* use the ABC metaclass
|
|\| |
| | |
| | |
| | |
| | | |
* commit '9824a39d8':
Async/await for background updates (#6647)
|
| | |
| | |
| | |
| | | |
so that bg update routines can be async
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'd20c34654':
port BackgroundUpdateTestCase to HomeserverTestCase (#6653)
changelog
Fix exceptions in log when rejected event is replicated
async/await for SyncReplicationHandler.process_and_notify
Clarify documentation on get_event* methods
|
| |\ \
| | | |
| | | | |
Fix exceptions in the synchrotron worker log when events are rejected.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Make it clearer how they behave in the face of rejected and/or missing events.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '1807db5e7':
changelog
Remove unused get_latest_event_ids_and_hashes_in_room
Remove unused get_prev_events_and_hashes_for_room
Remove unused hashes and depths from _update_membership params
Remove unused hashes and depths from create_event params
Remove unused hashes and depths from create_new_client_event params
replace get_prev_events_and_hashes_for_room with get_prev_events_for_room in create_new_client_event
rename get_prev_events_for_room to get_prev_events_and_hashes_for_room
|
| |\ \ \
| | |/ /
| |/| | |
Remove a bunch of unused code from event creation
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
create_new_client_event
|
| | | |
| | | |
| | | |
| | | | |
... to make way for a new method which just returns the event ids
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ba897a759':
Fix some test failures when frozen_dicts are enabled (#6642)
|
| | | |
| | | |
| | | |
| | | | |
Fixes #4026
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '9f6c1befb':
Add experimental 'databases' config (#6580)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(#6640)
* commit 'ab4b4ee6a':
Fix an error which was thrown by the PresenceHandler _on_shutdown handler. (#6640)
|
| | | |
| | | |
| | | |
| | | | |
(#6640)
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '4b36b482e':
Fix exception when fetching notary server's old keys (#6625)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Lift the restriction that *all* the keys used for signing v2 key responses be
present in verify_keys.
Fixes #6596.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '18674eebb':
Workaround for error when fetching notary's own key (#6620)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Kill off redundant SynapseRequestFactory
We already get the Site via the Channel, so there's no need for a dedicated
RequestFactory: we can just use the right constructor.
* Workaround for error when fetching notary's own key
As a notary server, when we return our own keys, include all of our signing
keys in verify_keys.
This is a workaround for #6596.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
upgrade (#6633)
* commit '01c3c6c92':
Fix power levels being incorrectly set in old and new rooms after a room upgrade (#6633)
|
| | |
| | |
| | |
| | |
| | |
| | | |
upgrade (#6633)
Modify a copy of an upgraded room's PL before sending to the new room
|
|\| |
| | |
| | |
| | |
| | | |
* commit '08815566b':
Automate generation of the sample and debian log configs (#6627)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'e48410130':
Raise an error if someone tries to use the log_file config option (#6626)
|
| | |
| | |
| | |
| | | |
This has caused some confusion for people who didn't notice it going away.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '98247c4a0':
Remove unused, undocumented "content repo" resource (#6628)
|
| | |
| | |
| | |
| | |
| | |
| | | |
This looks like it got half-killed back in #888.
Fixes #6567.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b6b57ecb4':
Kill off redundant SynapseRequestFactory (#6619)
|
| | |
| | |
| | |
| | | |
We already get the Site via the Channel, so there's no need for a dedicated
RequestFactory: we can just use the right constructor.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '6964ea095':
Reduce the reconnect time when replication fails. (#6617)
|
| |/ |
|
| |\ |
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '77661ce81':
1.7.3
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit '92eac974b':
Hacks to work around #6605 (#6608)
sample log config
|
| | |
| | |
| | |
| | |
| | | |
When we have an event which refers to non-existent auth_events, ignore said events rather than exploding in a ball of fire.
Fixes #6605.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '7c6b85355':
Update reverse proxy file name (#6590)
|
| |\| |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '29794c6bc':
1.7.2
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '75d8f26ac':
Split state groups into a separate data store (#6296)
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '4caab0e95':
Backport fixes to sqlite upgrade from develop (#6578)
|
| | |
| | |
| | |
| | |
| | | |
Only run prepare_database on connection for in-memory databases.
Fixes #6569.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit 'fa780e972':
Change EventContext to use the Storage class (#6564)
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '03d3792f3':
Fix exceptions when attempting to backfill (#6576)
|
| | |
| | |
| | | |
Fixes #6575
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '0b5dbadd9':
Explode on duplicate delta file names. (#6565)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '3d46124ad':
Port some admin handlers to async/await (#6559)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'bca30cefe':
Improve diagnostics on database upgrade failure (#6570)
|
| | |
| | |
| | |
| | | |
`Failed to upgrade database` is not helpful, and it's unlikely that UPGRADE.rst
has anything useful.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '0b794cbd7':
Fix sdnotify with acme enabled (#6571)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If acme was enabled, the sdnotify startup hook would never be run because we
would try to add it to a hook which had already fired.
There's no need to delay it: we can sdnotify as soon as we've started the
listeners.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b95b76256':
Add an export_signing_key script (#6546)
|
| | |
| | |
| | |
| | |
| | | |
I want to do some key rotation, and it is silly that we don't have a way to do
this.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'd6752ce5d':
Clean up startup for the pusher (#6558)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove redundant python2 support code
`str.decode()` doesn't exist on python3, so presumably this code was doing
nothing
* Filter out pushers with corrupt data
When we get a row with unparsable json, drop the row, rather than returning a
row with null `data`, which will then cause an explosion later on.
* Improve logging when we can't start a pusher
Log the ID to help us understand the problem
* Make email pusher setup more robust
We know we'll have a `data` member, since that comes from the database. What we
*don't* know is if that is a dict, and if that has a `brand` member, and if
that member is a string.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '7963ca83c':
Add delta file to fix missing default table data (#6555)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit '2284eb3a5':
Add database config class (#6513)
too many parens
|
| | |
| | |
| | |
| | |
| | | |
This encapsulates config for a given database and is the way to get new
connections.
|
| |\| |
|
| |\ \ |
|
|\ \ \ \
| | |_|/
| |/| |
| | | |
| | | | |
* commit 'd656e91fc':
1.7.1
|
| | |/
| |/| |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '502942253':
Fix bug where we added duplicate event IDs as auth_events (#6560)
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Previously we tried to be clever and filter out some unnecessary event
IDs to keep the auth chain small, but that had some annoying
interactions with state res v2 so we stop doing that for now.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '02553901c':
Remove unused `get_pagination_rows` methods. (#6557)
|
| | |
| | |
| | | |
Remove unused get_pagination_rows methods
|
|\| |
| | |
| | |
| | |
| | | |
* commit '3fbe5b7ec':
Add auth events as per spec. (#6556)
|
| | |
| | |
| | |
| | |
| | | |
Previously we tried to be clever and filter out some unnecessary event
IDs to keep the auth chain small, but that had some annoying
interactions with state res v2 so we stop doing that for now.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '631653036':
Incorporate review
Update changelog.d/6553.bugfix
Lint
Add test case
Changelog
Update the documentation of the filtering function
Use the filtered version of an event when responding to /context requests for that event
|
| |\ \
| | | |
| | | | |
Use the filtered version of an event when responding to /context requests for that event
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
for that event
Sometimes the filtering function can return a pruned version of an event (on top of either the event itself or an empty list), if it thinks the user should be able to see that there's an event there but not the content of that event. Therefore, the previous logic of 'if filtered is empty then we can use the event we retrieved from the database' is flawed, and we should use the event returned by the filtering function.
|
|\ \ \ \
| | |_|/
| |/| |
| | | |
| | | | |
* commit 'bfb95654c':
Add option to allow profile queries without sharing a room (#6523)
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
(#6527)
* commit 'bbb75ff6e':
Exclude rejected state events when calculating state at backwards extrems (#6527)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
(#6527)
This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ff773ff72':
Persist auth/state events at backwards extremities when we fetch them (#6526)
|
| | | |
| | | |
| | | |
| | | | |
The main point here is to make sure that the state returned by _get_state_in_room has been authed before we try to use it as state in the room.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When we perform state resolution, check that all of the events involved are in
the right room.
|
| | | |
| | | |
| | | |
| | | | |
When we do an event auth operation, check that all of the events involved are
in the right room.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '35bbe4ca7':
Check the room_id of events when fetching room state/auth (#6524)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When we request the state/auth_events to populate a backwards extremity (on
backfill or in the case of missing events in a transaction push), we should
check that the returned events are in the right room rather than blindly using
them in the room state or auth chain.
Given that _get_events_from_store_or_dest takes a room_id, it seems clear that
it should be sanity-checking the room_id of the requested events, so let's do
it there.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '20d5ba16e':
Add `include_event_in_state` to _get_state_for_room (#6521)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make it return the state *after* the requested event, rather than the one
before it. This is a bit easier and requires fewer calls to
get_events_from_store_or_dest.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'be294d6fd':
Move get_state methods into FederationHandler (#6503)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a non-functional refactor as a precursor to some other work.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '4c7b1bb6c':
Refactor get_events_from_store_or_dest to return a dict (#6501)
|
| | |/
| |/|
| | |
| | |
| | | |
There was a bunch of unnecessary conversion back and forth between dict and
list going on here. We can simplify a bunch of the code.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
(#6527)
* commit '6920d8889':
Exclude rejected state events when calculating state at backwards extrems (#6527)
|
| | |
| | |
| | |
| | |
| | | |
(#6527)
This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'bc7de8765':
Persist auth/state events at backwards extremities when we fetch them (#6526)
|
| | |
| | |
| | | |
The main point here is to make sure that the state returned by _get_state_in_room has been authed before we try to use it as state in the room.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '9d173b312':
Automatically delete empty groups/communities (#6453)
|
| | |
| | |
| | | |
Signed-off-by: Werner Sembach <werner.sembach@fau.de>
|
|\| |
| | |
| | |
| | |
| | | |
* commit '1da15f05f':
sanity-checking for events used in state res (#6531)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When we perform state resolution, check that all of the events involved are in
the right room.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '971a0702b':
Sanity-check room ids in event auth (#6530)
|
| | |
| | |
| | |
| | | |
When we do an event auth operation, check that all of the events involved are
in the right room.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '5cadbd9eb':
More rewording of changelog.
Reword changelog
Add deprecation notes
Newsfile
Bump version of mypy
|
| |\ \
| | | |
| | | | |
Bump mypy version
|
| | | | |
|
| |\ \ \
| | | |/
| | |/| |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit 'f5aeea9e8':
1.7.0
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | | |
* commit 'caa52836e':
Newsfile
Port synapse.handlers.initial_sync to async/await
|
| |\ \ \
| | | | |
| | | | | |
Port synapse.handlers.initial_sync to async/await
|
| | |\ \ \
| | | | | |
| | | | | |
| | | | | | |
erikj/initial_sync_asnyc
|
| | | | | | |
|
|\| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* commit 'cb2db1799':
look up cross-signing keys from the DB in bulk (#6486)
|
| | | | | | |
|
|\| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* commit '5bfd8855d':
Fix redacted events being returned in search results ordered by "recent" (#6522)
|
| | |_|_|/
| |/| | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '25f124432':
Check the room_id of events when fetching room state/auth (#6524)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When we request the state/auth_events to populate a backwards extremity (on
backfill or in the case of missing events in a transaction push), we should
check that the returned events are in the right room rather than blindly using
them in the room state or auth chain.
Given that _get_events_from_store_or_dest takes a room_id, it seems clear that
it should be sanity-checking the room_id of the requested events, so let's do
it there.
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'b8e4b39b6':
Add new config param to docstring and add types
Newsfile
Fix upgrade db script
Remove database config parsing from apps.
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
Move database config from apps into HomeServer object
|