2019-05-24 09:00:03 -05:00
|
|
|
GET /register yields a set of flows
|
|
|
|
POST /register can create a user
|
|
|
|
POST /register downcases capitals in usernames
|
2019-06-21 10:49:37 -05:00
|
|
|
POST /register rejects registration of usernames with '!'
|
|
|
|
POST /register rejects registration of usernames with '"'
|
|
|
|
POST /register rejects registration of usernames with ':'
|
|
|
|
POST /register rejects registration of usernames with '?'
|
|
|
|
POST /register rejects registration of usernames with '\'
|
|
|
|
POST /register rejects registration of usernames with '@'
|
|
|
|
POST /register rejects registration of usernames with '['
|
|
|
|
POST /register rejects registration of usernames with ']'
|
|
|
|
POST /register rejects registration of usernames with '{'
|
|
|
|
POST /register rejects registration of usernames with '|'
|
|
|
|
POST /register rejects registration of usernames with '}'
|
|
|
|
POST /register rejects registration of usernames with '£'
|
|
|
|
POST /register rejects registration of usernames with 'é'
|
|
|
|
POST /register rejects registration of usernames with '\n'
|
|
|
|
POST /register rejects registration of usernames with '''
|
|
|
|
GET /login yields a set of flows
|
2020-04-20 08:19:25 -05:00
|
|
|
POST /login can log in as a user
|
|
|
|
POST /login returns the same device_id as that in the request
|
|
|
|
POST /login can log in as a user with just the local part of the id
|
|
|
|
POST /login as non-existing user is rejected
|
|
|
|
POST /login wrong password is rejected
|
2019-06-21 10:49:37 -05:00
|
|
|
GET /events initially
|
|
|
|
GET /initialSync initially
|
|
|
|
Version responds 200 OK with valid structure
|
|
|
|
PUT /profile/:user_id/displayname sets my name
|
|
|
|
GET /profile/:user_id/displayname publicly accessible
|
|
|
|
PUT /profile/:user_id/avatar_url sets my avatar
|
|
|
|
GET /profile/:user_id/avatar_url publicly accessible
|
|
|
|
GET /device/{deviceId} gives a 404 for unknown devices
|
|
|
|
PUT /device/{deviceId} gives a 404 for unknown devices
|
|
|
|
POST /createRoom makes a public room
|
|
|
|
POST /createRoom makes a private room
|
|
|
|
POST /createRoom makes a private room with invites
|
|
|
|
POST /createRoom makes a room with a name
|
|
|
|
POST /createRoom makes a room with a topic
|
|
|
|
Can /sync newly created room
|
|
|
|
GET /rooms/:room_id/state/m.room.member/:user_id fetches my membership
|
|
|
|
GET /rooms/:room_id/state/m.room.power_levels fetches powerlevels
|
|
|
|
POST /join/:room_alias can join a room
|
|
|
|
POST /join/:room_id can join a room
|
|
|
|
POST /join/:room_id can join a room with custom content
|
|
|
|
POST /join/:room_alias can join a room with custom content
|
2019-07-12 08:29:30 -05:00
|
|
|
POST /rooms/:room_id/join can join a room
|
2019-06-21 10:49:37 -05:00
|
|
|
POST /rooms/:room_id/leave can leave a room
|
|
|
|
POST /rooms/:room_id/invite can send an invite
|
|
|
|
POST /rooms/:room_id/ban can ban a user
|
|
|
|
POST /rooms/:room_id/send/:event_type sends a message
|
|
|
|
PUT /rooms/:room_id/send/:event_type/:txn_id sends a message
|
|
|
|
PUT /rooms/:room_id/send/:event_type/:txn_id deduplicates the same txn id
|
|
|
|
GET /rooms/:room_id/state/m.room.power_levels can fetch levels
|
|
|
|
PUT /rooms/:room_id/state/m.room.power_levels can set levels
|
|
|
|
PUT power_levels should not explode if the old power levels were empty
|
2020-06-17 10:21:42 -05:00
|
|
|
GET /rooms/:room_id/state/m.room.member/:user_id?format=event fetches my membership event
|
|
|
|
GET /rooms/:room_id/joined_members fetches my membership
|
2019-06-21 10:49:37 -05:00
|
|
|
Both GET and PUT work
|
|
|
|
POST /rooms/:room_id/read_markers can create read marker
|
|
|
|
User signups are forbidden from starting with '_'
|
|
|
|
Request to logout with invalid an access token is rejected
|
|
|
|
Request to logout without an access token is rejected
|
|
|
|
Room creation reports m.room.create to myself
|
|
|
|
Room creation reports m.room.member to myself
|
2020-06-24 03:59:59 -05:00
|
|
|
Invited user can see room metadata
|
2020-04-14 12:36:08 -05:00
|
|
|
# Blacklisted because these tests call /r0/events which we don't implement
|
|
|
|
# New room members see their own join event
|
|
|
|
# Existing members see new members' join events
|
2019-06-21 10:49:37 -05:00
|
|
|
setting 'm.room.power_levels' respects room powerlevel
|
|
|
|
Unprivileged users can set m.room.topic if it only needs level 0
|
|
|
|
Users cannot set ban powerlevel higher than their own
|
|
|
|
Users cannot set kick powerlevel higher than their own
|
|
|
|
Users cannot set redact powerlevel higher than their own
|
|
|
|
Can get rooms/{roomId}/members for a departed room (SPEC-216)
|
|
|
|
3pid invite join with wrong but valid signature are rejected
|
|
|
|
3pid invite join valid signature but revoked keys are rejected
|
|
|
|
3pid invite join valid signature but unreachable ID server are rejected
|
|
|
|
Room members can join a room with an overridden displayname
|
|
|
|
Real non-joined user cannot call /events on shared room
|
|
|
|
Real non-joined user cannot call /events on invited room
|
|
|
|
Real non-joined user cannot call /events on joined room
|
|
|
|
Real non-joined user cannot call /events on default room
|
|
|
|
Real non-joined users can get state for world_readable rooms
|
|
|
|
Real non-joined users can get individual state for world_readable rooms
|
2020-01-23 11:51:10 -06:00
|
|
|
#Real non-joined users can get individual state for world_readable rooms after leaving
|
2019-06-21 10:49:37 -05:00
|
|
|
Real non-joined users cannot send messages to guest_access rooms if not joined
|
|
|
|
Real users can sync from world_readable guest_access rooms if joined
|
|
|
|
Real users can sync from default guest_access rooms if joined
|
|
|
|
Can't forget room you're still in
|
|
|
|
Can get rooms/{roomId}/members
|
|
|
|
Can create filter
|
|
|
|
Can download filter
|
Upgrade gomatrixserverlib dependency (#808)
* Upgrade gomatrixserverlib dependency
Signed-off-by: Thibaut CHARLES cromfr@gmail.com
* Added missing passing sytest
Signed-off-by: Thibaut CHARLES cromfr@gmail.com
* Fix login using identifier key
Not a full fix, it only really supports logging in with
the localpart of an mxid.
Signed-off-by: Serra Allgood <serra@allgood.dev>
* Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker
* goimports
* re-add temporarily missing deps?
* Refactor InstrumentHandlerCounter definition
* URL decode args
* Return server names (#833)
* Remove unnecessary map->array processing
* Return server names in room federation directory query
* Knock off a TODO
* Fix /send_join and /send_leave (#821)
Fix the /send_join and /send_leave endpoints, so that they use the v2 endpoints as mandated by MSC1802. Also comment out the SyTest tests that are failing because of lack of support for the v1 endpoints.
* Refuse /send_join without m.room.create (#824)
Signed-off-by: Abhishek Kumar <abhishekkumar2718@gmail.com>
* AS should use the v1 endpoint, rather than r0 (#827)
* docker: Passthrough parameters to dendrite-monolith-server
* Fix copy & paste error (#812)
* Use gomatrixserverlib.Transaction instead of local type (#590) (#811)
* Move files back if linting fails (#810)
* replaced gometalinter description with golangci-lint (#837)
* Amend syncapi SQL queries to return missing columns (#840)
* This commit updates a couple of the syncapi SQL queries to return additional columns that are required/expected by rowsToStreamEvents in output_room_events_table.go.
It's not exactly clear to me yet what transaction_id and session_id do, but these being added n #367 results in state events breaking the /sync endpoint.
This is a temporary fix. We need to come up with a better solution.
* gomatrix to gomatrixserverlib on some weird line change
* Tweaks from @babolivier review comments
* Implement storage interfaces (#841)
* Implement interfaces for federationsender storage
* Implement interfaces for mediaapi storage
* Implement interfaces for publicroomsapi storage
* Implement interfaces for roomserver storage
* Implement interfaces for syncapi storage
* Implement interfaces for keydb storage
* common.PartitionStorer in publicroomsapi interface
* Update copyright notices
* make cmd directory path absolute in build.sh (#830)
* Resync testfile with current sytest pass/fail (#832)
* Resync testfile with current sytest pass/fail
* Add displayname test
* Fall back to postgres when database connection string parsing fails (#842)
* Fall back to postgres when parsing the database connection string for a URI schema fails
* Fix behaviour so that it really tries postgres when URL parsing fails and it complains about unknown schema if it succeeds
* Fix #842
* Fix #842 - again...
* Federation fixes (#845)
* Update gomatrixserverlib to p2p commit 92c0338, other tweaks
* Update gomatrixserverlib to p2p commit e5dcc65
* Rewrite getAuthChain
* Update gomatrixserverlib in go.mod/go.sum
* Correct a couple of package refs for updated gmsl/gomatrix
* Update gomatrixserverlib ref in go.mod/go.sum
* Update getAuthChain comments following @babolivier review
* Add a Sytest blacklist file (#849)
* Add more passing tests to the testfile, add test blacklist file (#848)
* CS API: Support for /messages, fixes for /sync (#847)
* Merge forward
* Tidy up a bit
* TODO: What to do with NextBatch here?
* Replace SyncPosition with PaginationToken throughout syncapi
* Fix PaginationTokens
* Fix lint errors
* Add a couple of missing functions into the syncapi external storage interface
* Some updates based on review comments from @babolivier
* Some updates based on review comments from @babolivier
* argh whitespacing
* Fix opentracing span
* Remove dead code
* Don't overshadow err (fix lint issue)
* Handle extremities after inserting event into topology
* Try insert event topology as ON CONFLICT DO NOTHING
* Prevent OOB error in addRoomDeltaToResponse
* Thwarted by gocyclo again
* Fix NewPaginationTokenFromString, define unit test for it
* Update pagination token test
* Update sytest-whitelist
* Hopefully fix some of the sync batch tokens
* Remove extraneous sync position func
* Revert to topology tokens in addRoomDeltaToResponse etc
* Fix typo
* Remove prevPDUPos as dead now that backwardTopologyPos is used instead
* Fix selectEventsWithEventIDsSQL
* Update sytest-blacklist
* Update sytest-whitelist
* Some fixes for #847 (#850)
* Fix a couple of cases where backfilling events we already had causes panics, hopefully fix ordering of events, update GMSL dependency for backfill URL fixes
* Remove commented out lines from output_room_events_table schema
* Wire up publicroomsapi for roomserver events (#851)
* Wire up publicroomsapi to roomserver events
* Remove parameter that was incorrectly brought over from p2p work
* nolint containsBackwardExtremity for now
* Store our own keys in the keydb (#853)
* Store our own keys in the keydb
The DirectKeyFetcher makes the assumption that you can always reach the key/v2/server endpoint of any server, including our own. We previously haven't bothered to store our own keys in the keydb so this would mean we end up making key requests to ourselves.
In the libp2p world as an example, self-dialling is not possible, therefore this would render it impossible to get our own keys.
This commit adds our own keys into the keydb so that we don't create unnecessarily (and maybe impossible) requests.
* Use golang.org/x/crypto/ed25519 instead of crypto/ed25519 for pre-Go 1.13
* More sync fixes (#854)
* Further sync tweaks
* Remove unnecessary blank line
* getBackwardTopologyPos always returns a usable value
* Revert order fixing
* Implement GET endpoints for account_data in clientapi (#861)
* Implement GET endpoints for account_data in clientapi
* Fix accountDB parameter
* Remove fmt.Println
* Add empty push rules into account data on account creation (#862)
* Handle kind=guest query parameter on /register (#860)
* Handle kind=guest query parameter on /register
* Reorganized imports
* Pass device_id as nil
* Added tests to systest-whitelist
* Update sytest-whitelist
* Blacklist 'displayname updates affect room member events' (#859)
* Room version abstractions (#865)
* Rough first pass at adding room version abstractions
* Define newer room versions
* Update room version metadata
* Fix roomserver/versions
* Try to fix whitespace in roomsSchema
* Implement room version capabilities in CS API (#866)
* Add wiring for querying the roomserver for the default room version
* Try to implement /capabilities for room versions
* Update copyright notices
* Update sytests, add /capabilities endpoint into CS API
* Update sytest-whitelist
* Add GetDefaultRoomVersion
* Fix cases where state package was shadowed
* Fix version formatting
* Update Dockerfile to Go 1.13.6
* oh yes types I remember
* And fix the default too
* Update documentation for Go 1.13 (#867)
* Pass cfg by reference around the codebase (#819)
* Pass cfg by reference around the codebase
* Merge branch 'master' into pass-cfg-by-ref
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
* Implement missing device management features (#835)
* Implement missing device management features
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
* Add a little more documentation
* Undo changes
* Use non-anonymous struct to decode devices list
* Update sytest-whitelist
* Update sytest-whitelist
* Update sytest-blacklist
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
* Adding sslmode: disable to sytest server config (#813)
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
* Fix AppService bind addrs in test (#805)
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
* Always defer *sql.Rows.Close and consult with Err (#844)
* Always defer *sql.Rows.Close and consult with Err
database/sql.Rows.Next() makes sure to call Close only after exhausting
result rows which would NOT happen when returning early from a bad Scan.
Close being idempotent makes it a great candidate to get always deferred
regardless of what happens later on the result set.
This change also makes sure call Err() after exhausting Next() and
propagate non-nil results from it as the documentation advises.
Closes #764
Signed-off-by: Kiril Vladimiroff <kiril@vladimiroff.org>
* Override named result parameters in last returns
Signed-off-by: Kiril Vladimiroff <kiril@vladimiroff.org>
* Do the same over new changes that got merged
Signed-off-by: Kiril Vladimiroff <kiril@vladimiroff.org>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
* Clean up
Co-authored-by: Serra Allgood <serra@allgood.dev>
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Co-authored-by: Brendan Abolivier <github@brendanabolivier.com>
Co-authored-by: Abhishek Kumar <31231064+abhishekkumar2718@users.noreply.github.com>
Co-authored-by: Will Hunt <will@half-shot.uk>
Co-authored-by: S7evinK <tfaelligen@gmail.com>
Co-authored-by: Arshpreet <30545756+arsh-7@users.noreply.github.com>
Co-authored-by: Prateek Sachan <42961174+prateek2211@users.noreply.github.com>
Co-authored-by: Behouba Manassé <behouba@gmail.com>
Co-authored-by: aditsachde <23707194+aditsachde@users.noreply.github.com>
Co-authored-by: Kiril Vladimiroff <kiril@vladimiroff.org>
2020-02-11 09:46:51 -06:00
|
|
|
Lazy loading parameters in the filter are strictly boolean
|
2019-06-21 10:49:37 -05:00
|
|
|
Can sync
|
|
|
|
Can sync a joined room
|
|
|
|
Newly joined room is included in an incremental sync
|
|
|
|
User is offline if they set_presence=offline in their sync
|
|
|
|
Changes to state are included in an incremental sync
|
|
|
|
A change to displayname should appear in incremental /sync
|
|
|
|
Current state appears in timeline in private history
|
|
|
|
Current state appears in timeline in private history with many messages before
|
|
|
|
Rooms a user is invited to appear in an initial sync
|
|
|
|
Rooms a user is invited to appear in an incremental sync
|
|
|
|
Sync can be polled for updates
|
|
|
|
Sync is woken up for leaves
|
|
|
|
Newly left rooms appear in the leave section of incremental sync
|
|
|
|
We should see our own leave event, even if history_visibility is restricted (SYN-662)
|
|
|
|
We should see our own leave event when rejecting an invite, even if history_visibility is restricted (riot-web/3462)
|
|
|
|
Newly left rooms appear in the leave section of gapped sync
|
|
|
|
Previously left rooms don't appear in the leave section of sync
|
|
|
|
Left rooms appear in the leave section of full state sync
|
|
|
|
Newly banned rooms appear in the leave section of incremental sync
|
|
|
|
Newly banned rooms appear in the leave section of incremental sync
|
|
|
|
local user can join room with version 1
|
|
|
|
User can invite local user to room with version 1
|
|
|
|
Should reject keys claiming to belong to a different user
|
|
|
|
Can add account data
|
|
|
|
Can add account data to room
|
2020-06-17 11:01:03 -05:00
|
|
|
Can get account data without syncing
|
|
|
|
Can get room account data without syncing
|
2020-02-05 12:06:39 -06:00
|
|
|
#Latest account data appears in v2 /sync
|
2019-06-21 10:49:37 -05:00
|
|
|
New account data appears in incremental v2 /sync
|
|
|
|
Checking local federation server
|
|
|
|
Inbound federation can query profile data
|
|
|
|
Outbound federation can send room-join requests
|
|
|
|
Outbound federation can send events
|
2019-12-20 08:41:32 -06:00
|
|
|
# SyTest currently only implements the v1 endpoints for /send_join and /send_leave,
|
|
|
|
# whereas Dendrite only supports the v2 endpoints for those, so let's ignore this
|
|
|
|
# test for now.
|
|
|
|
#Inbound federation can backfill events
|
|
|
|
# SyTest currently only implements the v1 endpoints for /send_join and /send_leave,
|
|
|
|
# whereas Dendrite only supports the v2 endpoints for those, so let's ignore this
|
|
|
|
# test for now.
|
|
|
|
#Backfill checks the events requested belong to the room
|
2019-06-21 10:49:37 -05:00
|
|
|
Can upload without a file name
|
2020-06-17 05:53:26 -05:00
|
|
|
Can download without a file name locally
|
2019-06-21 10:49:37 -05:00
|
|
|
Can upload with ASCII file name
|
|
|
|
Can send image in room message
|
|
|
|
AS cannot create users outside its own namespace
|
|
|
|
Regular users cannot register within the AS namespace
|
|
|
|
AS can't set displayname for random users
|
|
|
|
AS user (not ghost) can join room without registering, with user_id query param
|
|
|
|
Changing the actions of an unknown default rule fails with 404
|
|
|
|
Changing the actions of an unknown rule fails with 404
|
|
|
|
Enabling an unknown default rule fails with 404
|
|
|
|
Trying to get push rules with unknown rule_id fails with 404
|
|
|
|
Events come down the correct room
|
2019-12-20 08:41:32 -06:00
|
|
|
# SyTest currently only implements the v1 endpoints for /send_join and /send_leave,
|
|
|
|
# whereas Dendrite only supports the v2 endpoints for those, so let's ignore this
|
|
|
|
# test for now.
|
|
|
|
#Inbound federation can receive v1 room-join requests
|
2019-07-12 09:59:53 -05:00
|
|
|
Typing events appear in initial sync
|
|
|
|
Typing events appear in incremental sync
|
|
|
|
Typing events appear in gapped sync
|
2019-07-18 02:41:29 -05:00
|
|
|
Inbound federation of state requires event_id as a mandatory paramater
|
|
|
|
Inbound federation of state_ids requires event_id as a mandatory paramater
|
2019-07-22 09:05:38 -05:00
|
|
|
POST /register returns the same device_id as that in the request
|
2019-07-24 11:15:36 -05:00
|
|
|
POST /createRoom with creation content
|
|
|
|
User can create and send/receive messages in a room with version 1
|
|
|
|
POST /createRoom ignores attempts to set the room version via creation_content
|
2019-07-29 02:18:21 -05:00
|
|
|
Inbound federation rejects remote attempts to join local users to rooms
|
|
|
|
Inbound federation rejects remote attempts to kick local users to rooms
|
2019-12-20 08:41:32 -06:00
|
|
|
# SyTest currently only implements the v1 endpoints for /send_join and /send_leave,
|
|
|
|
# whereas Dendrite only supports the v2 endpoints for those, so let's ignore this
|
|
|
|
# test for now.
|
|
|
|
#An event which redacts itself should be ignored
|
|
|
|
# SyTest currently only implements the v1 endpoints for /send_join and /send_leave,
|
|
|
|
# whereas Dendrite only supports the v2 endpoints for those, so let's ignore this
|
|
|
|
# test for now.
|
|
|
|
#A pair of events which redact each other should be ignored
|
2019-07-31 23:36:13 -05:00
|
|
|
Full state sync includes joined rooms
|
2019-08-06 10:33:53 -05:00
|
|
|
A message sent after an initial sync appears in the timeline of an incremental sync.
|
2019-08-02 06:17:51 -05:00
|
|
|
Can add tag
|
|
|
|
Can remove tag
|
|
|
|
Can list tags for a room
|
|
|
|
Tags appear in an initial v2 /sync
|
|
|
|
Newly updated tags appear in an incremental v2 /sync
|
|
|
|
Deleted tags appear in an incremental v2 /sync
|
2019-08-06 09:52:04 -05:00
|
|
|
/event/ on non world readable room does not work
|
2019-08-06 11:02:12 -05:00
|
|
|
Outbound federation can query profile data
|
2019-08-09 04:45:54 -05:00
|
|
|
/event/ on joined room works
|
|
|
|
/event/ does not allow access to events before the user joined
|
2019-08-19 12:01:53 -05:00
|
|
|
Federation key API allows unsigned requests for keys
|
2019-09-26 08:20:34 -05:00
|
|
|
Can paginate public room list
|
2019-10-01 11:09:47 -05:00
|
|
|
GET /directory/room/:room_alias yields room ID
|
|
|
|
PUT /directory/room/:room_alias creates alias
|
|
|
|
Room aliases can contain Unicode
|
|
|
|
Creators can delete alias
|
|
|
|
Regular users cannot create room aliases within the AS namespace
|
|
|
|
Deleting a non-existent alias should return a 404
|
|
|
|
Users can't delete other's aliases
|
|
|
|
Outbound federation can query room alias directory
|
2020-01-09 10:40:30 -06:00
|
|
|
After deactivating account, can't log in with an email
|
|
|
|
Remote room alias queries can handle Unicode
|
|
|
|
Newly joined room is included in an incremental sync after invite
|
|
|
|
Inbound /v1/make_join rejects remote attempts to join local users to rooms
|
2020-01-22 10:11:40 -06:00
|
|
|
Local room members see posted message events
|
|
|
|
Fetching eventstream a second time doesn't yield the message again
|
|
|
|
Local non-members don't see posted message events
|
|
|
|
Remote room members also see posted message events
|
|
|
|
Lazy loading parameters in the filter are strictly boolean
|
|
|
|
remote user can join room with version 1
|
|
|
|
Inbound federation can query room alias directory
|
|
|
|
Outbound federation can query v2 /send_join
|
|
|
|
Inbound federation can receive v2 /send_join
|
2020-01-23 11:51:10 -06:00
|
|
|
Message history can be paginated
|
|
|
|
Getting messages going forward is limited for a departed room (SPEC-216)
|
|
|
|
m.room.history_visibility == "world_readable" allows/forbids appropriately for Real users
|
|
|
|
Backfill works correctly with history visibility set to joined
|
2020-01-30 05:25:57 -06:00
|
|
|
Guest user cannot call /events globally
|
|
|
|
Guest users can join guest_access rooms
|
|
|
|
Guest user can set display names
|
|
|
|
Guest user cannot upgrade other users
|
|
|
|
m.room.history_visibility == "world_readable" allows/forbids appropriately for Guest users
|
|
|
|
Guest non-joined user cannot call /events on shared room
|
|
|
|
Guest non-joined user cannot call /events on invited room
|
|
|
|
Guest non-joined user cannot call /events on joined room
|
|
|
|
Guest non-joined user cannot call /events on default room
|
|
|
|
Guest non-joined users can get state for world_readable rooms
|
|
|
|
Guest non-joined users can get individual state for world_readable rooms
|
|
|
|
Guest non-joined users cannot room initalSync for non-world_readable rooms
|
|
|
|
Guest non-joined users can get individual state for world_readable rooms after leaving
|
|
|
|
Guest non-joined users cannot send messages to guest_access rooms if not joined
|
|
|
|
Guest users can sync from world_readable guest_access rooms if joined
|
|
|
|
Guest users can sync from default guest_access rooms if joined
|
|
|
|
Real non-joined users cannot room initalSync for non-world_readable rooms
|
2020-01-30 05:29:52 -06:00
|
|
|
Push rules come down in an initial /sync
|
2020-02-05 12:06:39 -06:00
|
|
|
Regular users can add and delete aliases in the default room configuration
|
|
|
|
GET /r0/capabilities is not public
|
2020-03-19 05:25:36 -05:00
|
|
|
GET /joined_rooms lists newly-created room
|
|
|
|
/joined_rooms returns only joined rooms
|
2020-03-24 07:20:10 -05:00
|
|
|
Message history can be paginated over federation
|
2020-03-24 08:39:50 -05:00
|
|
|
GET /rooms/:room_id/messages returns a message
|
|
|
|
Remote user can backfill in a room with version 1
|
2020-03-27 11:28:22 -05:00
|
|
|
POST /createRoom creates a room with the given version
|
|
|
|
POST /createRoom rejects attempts to create rooms with numeric versions
|
|
|
|
POST /createRoom rejects attempts to create rooms with unknown versions
|
Federation for v3/v4 rooms (#954)
* Update gomatrixserverlib
* Default to room version 4
* Update gomatrixserverlib
* Limit prev_events and auth_events
* Fix auth_events, prev_events
* Fix linter issues
* Update gomatrixserverlib
* Fix getState
* Update sytest-whitelist
* Squashed commit of the following:
commit 067b87506357c996fd6ddb11271db9469ad4ce80
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Fri Apr 3 14:29:06 2020 +0100
Invites v2 endpoint (#952)
* Start converting v1 invite endpoint to v2
* Update gomatrixserverlib
* Early federationsender code for sending invites
* Sending invites sorta happens now
* Populate invite request with stripped state
* Remodel a bit, don't reflect received invites
* Handle invite_room_state
* Handle room versions a bit better
* Update gomatrixserverlib
* Tweak order in destinationQueue.next
* Revert check in processMessage
* Tweak federation sender destination queue code a bit
* Add comments
commit 955244c09298d0e6c870377dad3af2ffa1f5e578
Author: Ben B <benne@klimlive.de>
Date: Fri Apr 3 12:40:50 2020 +0200
use custom http client instead of the http DefaultClient (#823)
This commit replaces the default client from the http lib with a custom one.
The previously used default client doesn't come with a timeout. This could cause
unwanted locks.
That solution chosen here creates a http client in the base component dendrite
with a constant timeout of 30 seconds. If it should be necessary to overwrite
this, we could include the timeout in the dendrite configuration.
Here it would be a good idea to extend the type "Address" by a timeout and
create an http client for each service.
Closes #820
Signed-off-by: Benedikt Bongartz <benne@klimlive.de>
Co-authored-by: Kegsay <kegan@matrix.org>
* Update sytest-whitelist, sytest-blacklist
* Update go.mod/go.sum
* Add some error wrapping for debug
* Add a NOTSPEC to common/events.go
* Perform state resolution at send_join
* Set default room version to v2 again
* Tweak GetCapabilities
* Add comments to ResolveConflictsAdhoc
* Update sytest-blacklist
* go mod tidy
* Update sytest-whitelist, sytest-blacklist
* Update versions
* Updates from review comments
* Update sytest-blacklist, sytest-whitelist
* Check room versions compatible at make_join, add some comments, update gomatrixserverlib, other tweaks
* Set default room version back to v2
* Update gomatrixserverlib, sytest-whitelist
2020-04-09 09:46:06 -05:00
|
|
|
Regular users can add and delete aliases when m.room.aliases is restricted
|
2020-03-27 11:28:22 -05:00
|
|
|
User can create and send/receive messages in a room with version 2
|
|
|
|
local user can join room with version 2
|
|
|
|
remote user can join room with version 2
|
|
|
|
User can invite local user to room with version 2
|
|
|
|
Remote user can backfill in a room with version 2
|
2020-04-03 08:29:06 -05:00
|
|
|
Inbound federation accepts attempts to join v2 rooms from servers with support
|
Federation for v3/v4 rooms (#954)
* Update gomatrixserverlib
* Default to room version 4
* Update gomatrixserverlib
* Limit prev_events and auth_events
* Fix auth_events, prev_events
* Fix linter issues
* Update gomatrixserverlib
* Fix getState
* Update sytest-whitelist
* Squashed commit of the following:
commit 067b87506357c996fd6ddb11271db9469ad4ce80
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Fri Apr 3 14:29:06 2020 +0100
Invites v2 endpoint (#952)
* Start converting v1 invite endpoint to v2
* Update gomatrixserverlib
* Early federationsender code for sending invites
* Sending invites sorta happens now
* Populate invite request with stripped state
* Remodel a bit, don't reflect received invites
* Handle invite_room_state
* Handle room versions a bit better
* Update gomatrixserverlib
* Tweak order in destinationQueue.next
* Revert check in processMessage
* Tweak federation sender destination queue code a bit
* Add comments
commit 955244c09298d0e6c870377dad3af2ffa1f5e578
Author: Ben B <benne@klimlive.de>
Date: Fri Apr 3 12:40:50 2020 +0200
use custom http client instead of the http DefaultClient (#823)
This commit replaces the default client from the http lib with a custom one.
The previously used default client doesn't come with a timeout. This could cause
unwanted locks.
That solution chosen here creates a http client in the base component dendrite
with a constant timeout of 30 seconds. If it should be necessary to overwrite
this, we could include the timeout in the dendrite configuration.
Here it would be a good idea to extend the type "Address" by a timeout and
create an http client for each service.
Closes #820
Signed-off-by: Benedikt Bongartz <benne@klimlive.de>
Co-authored-by: Kegsay <kegan@matrix.org>
* Update sytest-whitelist, sytest-blacklist
* Update go.mod/go.sum
* Add some error wrapping for debug
* Add a NOTSPEC to common/events.go
* Perform state resolution at send_join
* Set default room version to v2 again
* Tweak GetCapabilities
* Add comments to ResolveConflictsAdhoc
* Update sytest-blacklist
* go mod tidy
* Update sytest-whitelist, sytest-blacklist
* Update versions
* Updates from review comments
* Update sytest-blacklist, sytest-whitelist
* Check room versions compatible at make_join, add some comments, update gomatrixserverlib, other tweaks
* Set default room version back to v2
* Update gomatrixserverlib, sytest-whitelist
2020-04-09 09:46:06 -05:00
|
|
|
Outbound federation can send invites via v2 API
|
2020-06-25 11:07:40 -05:00
|
|
|
Outbound federation can send invites via v1 API
|
|
|
|
Inbound federation can receive invites via v1 API
|
|
|
|
Inbound federation can receive invites via v2 API
|
Federation for v3/v4 rooms (#954)
* Update gomatrixserverlib
* Default to room version 4
* Update gomatrixserverlib
* Limit prev_events and auth_events
* Fix auth_events, prev_events
* Fix linter issues
* Update gomatrixserverlib
* Fix getState
* Update sytest-whitelist
* Squashed commit of the following:
commit 067b87506357c996fd6ddb11271db9469ad4ce80
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Fri Apr 3 14:29:06 2020 +0100
Invites v2 endpoint (#952)
* Start converting v1 invite endpoint to v2
* Update gomatrixserverlib
* Early federationsender code for sending invites
* Sending invites sorta happens now
* Populate invite request with stripped state
* Remodel a bit, don't reflect received invites
* Handle invite_room_state
* Handle room versions a bit better
* Update gomatrixserverlib
* Tweak order in destinationQueue.next
* Revert check in processMessage
* Tweak federation sender destination queue code a bit
* Add comments
commit 955244c09298d0e6c870377dad3af2ffa1f5e578
Author: Ben B <benne@klimlive.de>
Date: Fri Apr 3 12:40:50 2020 +0200
use custom http client instead of the http DefaultClient (#823)
This commit replaces the default client from the http lib with a custom one.
The previously used default client doesn't come with a timeout. This could cause
unwanted locks.
That solution chosen here creates a http client in the base component dendrite
with a constant timeout of 30 seconds. If it should be necessary to overwrite
this, we could include the timeout in the dendrite configuration.
Here it would be a good idea to extend the type "Address" by a timeout and
create an http client for each service.
Closes #820
Signed-off-by: Benedikt Bongartz <benne@klimlive.de>
Co-authored-by: Kegsay <kegan@matrix.org>
* Update sytest-whitelist, sytest-blacklist
* Update go.mod/go.sum
* Add some error wrapping for debug
* Add a NOTSPEC to common/events.go
* Perform state resolution at send_join
* Set default room version to v2 again
* Tweak GetCapabilities
* Add comments to ResolveConflictsAdhoc
* Update sytest-blacklist
* go mod tidy
* Update sytest-whitelist, sytest-blacklist
* Update versions
* Updates from review comments
* Update sytest-blacklist, sytest-whitelist
* Check room versions compatible at make_join, add some comments, update gomatrixserverlib, other tweaks
* Set default room version back to v2
* Update gomatrixserverlib, sytest-whitelist
2020-04-09 09:46:06 -05:00
|
|
|
User can create and send/receive messages in a room with version 3
|
|
|
|
local user can join room with version 3
|
|
|
|
Remote user can backfill in a room with version 3
|
|
|
|
User can create and send/receive messages in a room with version 4
|
|
|
|
local user can join room with version 4
|
|
|
|
remote user can join room with version 3
|
|
|
|
remote user can join room with version 4
|
|
|
|
Remote user can backfill in a room with version 4
|
|
|
|
# We don't support ignores yet, so ignore this for now - ha ha.
|
|
|
|
# Ignore invite in incremental sync
|
|
|
|
Outbound federation can send invites via v2 API
|
|
|
|
User can invite local user to room with version 3
|
|
|
|
User can invite local user to room with version 4
|
2020-04-14 12:36:08 -05:00
|
|
|
A pair of servers can establish a join in a v2 room
|
2020-04-20 11:42:34 -05:00
|
|
|
Can logout all devices
|
2020-04-28 04:53:07 -05:00
|
|
|
State from remote users is included in the timeline in an incremental sync
|
|
|
|
User can invite remote user to room with version 1
|
|
|
|
User can invite remote user to room with version 2
|
|
|
|
User can invite remote user to room with version 3
|
|
|
|
User can invite remote user to room with version 4
|
2020-04-29 13:37:00 -05:00
|
|
|
User can create and send/receive messages in a room with version 5
|
|
|
|
local user can join room with version 5
|
|
|
|
User can invite local user to room with version 5
|
|
|
|
remote user can join room with version 5
|
|
|
|
User can invite remote user to room with version 5
|
|
|
|
Remote user can backfill in a room with version 5
|
2020-05-12 10:24:28 -05:00
|
|
|
Inbound federation can receive v1 /send_join
|
|
|
|
Inbound federation can get state for a room
|
|
|
|
Inbound federation of state requires event_id as a mandatory paramater
|
|
|
|
Inbound federation can get state_ids for a room
|
|
|
|
Inbound federation of state_ids requires event_id as a mandatory paramater
|
|
|
|
Federation rejects inbound events where the prev_events cannot be found
|
|
|
|
Outbound federation requests missing prev_events and then asks for /state_ids and resolves the state
|
2020-05-11 05:50:29 -05:00
|
|
|
Alternative server names do not cause a routing loop
|
2020-05-12 11:49:04 -05:00
|
|
|
Events whose auth_events are in the wrong room do not mess up the room state
|
|
|
|
Inbound federation can return events
|
|
|
|
Inbound federation can return missing events for world_readable visibility
|
|
|
|
Inbound federation can return missing events for invite visibility
|
|
|
|
Inbound federation can get public room list
|
|
|
|
An event which redacts itself should be ignored
|
|
|
|
A pair of events which redact each other should be ignored
|
2020-05-19 12:42:55 -05:00
|
|
|
Outbound federation can backfill events
|
2020-05-20 10:04:31 -05:00
|
|
|
Inbound federation can backfill events
|
2020-05-20 11:30:03 -05:00
|
|
|
Backfill checks the events requested belong to the room
|
|
|
|
Backfilled events whose prev_events are in a different room do not allow cross-room back-pagination
|
2020-05-20 12:31:02 -05:00
|
|
|
Outbound federation can request missing events
|
2020-05-21 05:51:15 -05:00
|
|
|
New room members see their own join event
|
|
|
|
Existing members see new members' join events
|
|
|
|
Inbound federation can receive events
|
|
|
|
Inbound federation can receive redacted events
|
2020-05-26 08:41:16 -05:00
|
|
|
Can logout current device
|
Send-to-device support (#1072)
* Groundwork for send-to-device messaging
* Update sample config
* Add unstable routing for now
* Send to device consumer in sync API
* Start the send-to-device consumer
* fix indentation in dendrite-config.yaml
* Create send-to-device database tables, other tweaks
* Add some logic for send-to-device messages, add them into sync stream
* Handle incoming send-to-device messages, count them with EDU stream pos
* Undo changes to test
* pq.Array
* Fix sync
* Logging
* Fix a couple of transaction things, fix client API
* Add send-to-device test, hopefully fix bugs
* Comments
* Refactor a bit
* Fix schema
* Fix queries
* Debug logging
* Fix storing and retrieving of send-to-device messages
* Try to avoid database locks
* Update sync position
* Use latest sync position
* Jiggle about sync a bit
* Fix tests
* Break out the retrieval from the update/delete behaviour
* Comments
* nolint on getResponseWithPDUsForCompleteSync
* Try to line up sync tokens again
* Implement wildcard
* Add all send-to-device tests to whitelist, what could possibly go wrong?
* Only care about wildcard when targeted locally
* Deduplicate transactions
* Handle tokens properly, return immediately if waiting send-to-device messages
* Fix sync
* Update sytest-whitelist
* Fix copyright notice (need to do more of this)
* Comments, copyrights
* Return errors from Do, fix dendritejs
* Review comments
* Comments
* Constructor for TransactionWriter
* defletions
* Update gomatrixserverlib, sytest-blacklist
2020-06-01 11:50:19 -05:00
|
|
|
Can send a message directly to a device using PUT /sendToDevice
|
|
|
|
Can recv a device message using /sync
|
|
|
|
Can recv device messages until they are acknowledged
|
|
|
|
Device messages with the same txn_id are deduplicated
|
|
|
|
Device messages wake up /sync
|
|
|
|
# TODO: separate PR for: Can recv device messages over federation
|
|
|
|
# TODO: separate PR for: Device messages over federation wake up /sync
|
|
|
|
Can send messages with a wildcard device id
|
|
|
|
Can send messages with a wildcard device id to two devices
|
|
|
|
Wildcard device messages wake up /sync
|
|
|
|
# TODO: separate PR for: Wildcard device messages over federation wake up /sync
|
|
|
|
Can send a to-device message to two users which both receive it using /sync
|
2020-06-04 04:53:39 -05:00
|
|
|
User can create and send/receive messages in a room with version 6
|
|
|
|
local user can join room with version 6
|
|
|
|
User can invite local user to room with version 6
|
|
|
|
remote user can join room with version 6
|
|
|
|
User can invite remote user to room with version 6
|
|
|
|
Remote user can backfill in a room with version 6
|
|
|
|
Inbound: send_join rejects invalid JSON for room version 6
|
|
|
|
Outbound federation rejects backfill containing invalid JSON for events in room version 6
|
|
|
|
Invalid JSON integers
|
|
|
|
Invalid JSON special values
|
|
|
|
Invalid JSON floats
|
|
|
|
Outbound federation will ignore a missing event with bad JSON for room version 6
|
2020-06-23 07:15:15 -05:00
|
|
|
Server correctly handles transactions that break edu limits
|
|
|
|
Server rejects invalid JSON in a version 6 room
|
2020-06-16 08:47:30 -05:00
|
|
|
Can download without a file name over federation
|
2020-06-16 12:31:38 -05:00
|
|
|
POST /media/r0/upload can create an upload
|
|
|
|
GET /media/r0/download can fetch the value again
|
|
|
|
Remote users can join room by alias
|
|
|
|
Alias creators can delete alias with no ops
|
|
|
|
Alias creators can delete canonical alias with no ops
|
|
|
|
Room members can override their displayname on a room-specific basis
|
|
|
|
displayname updates affect room member events
|
|
|
|
avatar_url updates affect room member events
|
|
|
|
Real non-joined users can get individual state for world_readable rooms after leaving
|
|
|
|
Can upload with Unicode file name
|
|
|
|
POSTed media can be thumbnailed
|
|
|
|
Remote media can be thumbnailed
|
|
|
|
Can download with Unicode file name locally
|
2020-06-17 05:53:26 -05:00
|
|
|
Can download file 'ascii'
|
|
|
|
Can download file 'name with spaces'
|
|
|
|
Can download file 'name;with;semicolons'
|
|
|
|
Can download specifying a different ASCII file name
|
2020-06-17 08:26:45 -05:00
|
|
|
Can download with Unicode file name over federation
|
|
|
|
Can download specifying a different Unicode file name
|
2020-06-17 07:54:47 -05:00
|
|
|
Inbound /v1/send_join rejects joins from other servers
|
2020-06-17 09:40:37 -05:00
|
|
|
Outbound federation can query v1 /send_join
|
|
|
|
Inbound /v1/send_join rejects incorrectly-signed joins
|
2020-06-17 10:47:21 -05:00
|
|
|
POST /rooms/:room_id/state/m.room.name sets name
|
|
|
|
GET /rooms/:room_id/state/m.room.name gets name
|
|
|
|
POST /rooms/:room_id/state/m.room.topic sets topic
|
|
|
|
GET /rooms/:room_id/state/m.room.topic gets topic
|
|
|
|
GET /rooms/:room_id/state fetches entire room state
|
|
|
|
Setting room topic reports m.room.topic to myself
|
|
|
|
setting 'm.room.name' respects room powerlevel
|
2020-06-19 07:29:27 -05:00
|
|
|
Syncing a new room with a large timeline limit isn't limited
|
|
|
|
Left rooms appear in the leave section of sync
|
|
|
|
Banned rooms appear in the leave section of sync
|
2020-06-23 05:47:48 -05:00
|
|
|
Getting state checks the events requested belong to the room
|
|
|
|
Getting state IDs checks the events requested belong to the room
|
2020-06-24 04:28:03 -05:00
|
|
|
Can invite users to invite-only rooms
|
|
|
|
Uninvited users cannot join the room
|
2020-06-24 12:19:14 -05:00
|
|
|
Users cannot invite themselves to a room
|
|
|
|
Users cannot invite a user that is already in the room
|
2020-06-24 04:28:03 -05:00
|
|
|
Invited user can reject invite
|
|
|
|
Invited user can reject invite for empty room
|
|
|
|
Invited user can reject local invite after originator leaves
|
2020-06-25 09:06:46 -05:00
|
|
|
PUT /rooms/:room_id/typing/:user_id sets typing notification
|
2020-06-24 04:28:03 -05:00
|
|
|
Typing notification sent to local room members
|
|
|
|
Typing notifications also sent to remote room members
|
|
|
|
Typing can be explicitly stopped
|
2020-06-24 12:19:54 -05:00
|
|
|
Banned user is kicked and may not rejoin until unbanned
|
2020-06-25 09:04:48 -05:00
|
|
|
Inbound federation rejects attempts to join v1 rooms from servers without v1 support
|
|
|
|
Inbound federation rejects attempts to join v2 rooms from servers lacking version support
|
|
|
|
Inbound federation rejects attempts to join v2 rooms from servers only supporting v1
|
|
|
|
Outbound federation passes make_join failures through to the client
|
|
|
|
Outbound federation correctly handles unsupported room versions
|
|
|
|
Remote users may not join unfederated rooms
|
|
|
|
Guest users denied access over federation if guest access prohibited
|
2020-06-25 12:05:41 -05:00
|
|
|
Non-numeric ports in server names are rejected
|