Commit graph

629 commits

Author SHA1 Message Date
Behouba Manassé 69f8d5a77e Content-Disposition HTTP header in mediaapi's responses added (#685)
This should fix #628
I also Noticed that GET /_matrix/media/r0/download/{serverName}/{mediaId}/{fileName} is not yet implemented, but it should work for both.

Signed-off-by: Kouamé Behouba Manassé behouba@gmail.com
2019-07-08 14:06:17 +01:00
Alex Chen da0dd06475 Update testfile and fix empty warning in show-expected-fail-tests.sh (#729)
This PR adds the test that matrix-org/sytest#642 will allow to pass to testfile and also contains a minor fix for show-expected-fail-tests.sh so it doesn't show an empty warning.

Signed-off-by: Alex Chen minecnly@gmail.com
2019-07-05 12:42:23 +01:00
Andrew Morgan 33a1392541
Encode URLs properly (#728)
We were escaping the URL before performing any pattern matching on it.
This meant that if you sent data that URLdecoded to a "/", it would count as
a "/" in the URL, potentially causing a 404. This was causing some flaky tests
with some randomly-generated query parameters.

Now, we keep URLs encoded while doing the pattern matching, and only afterwards
do we URL decode each query parameter individually before passing them to their
respective handler functions.

github.com/gorilla/mux was also updated to v1.7.3 to fix a bug with URL encoding and subrouters.
2019-07-03 16:38:50 +01:00
Andrew Morgan 1eb77b8161
Don't print Sending EDU if there is noone to send to (#721)
The logs had a lot of:

```
Sending EDU event                             destinations="[]" edu_type=m.typing
```

Which is useless if it isn't actually sending the event anywhere (destinations is empty).
2019-07-01 16:04:49 +01:00
Serra Allgood a0dec456c1 rommserver/alias: Do not call appserviceAPI in GetRoomIDForAlias if local alias found #631 (#702)
A conditional is added to wrap the call to appserviceAPI if a local alias is not found in the database.

Fixes #631

Signed-off-by: Serra Allgood <serra@allgood.dev>
2019-06-25 13:43:18 +01:00
Alex Chen 7792f12e6f Fix testfile path hardcoded in show-expected-fail-tests.sh (#719)
Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-06-25 11:50:19 +01:00
Alex Chen b88112b05d Make federation state request 404 when event not in the room - fixes #625 (#716)
Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-06-25 11:32:15 +01:00
Andrew Morgan eaf38ae87e
Not all systems have bash (#720)
As not all systems have bash.

Helpful for not making debugging alpine docker images a pain :>
2019-06-24 13:35:29 +01:00
Alex Chen ce189a737d Update dependency gomatrixserverlib to 178ed5e (#695)
Update dependency gomatrixserverlib to 178ed5e
2019-06-22 14:40:55 +01:00
Alex Chen adaec7c8e7 Refine config and docs for sytest (#714)
This PR adds the "passed but expected fail" tests to testfile, as well as instructions on finding which tests to add for new PRs.
2019-06-21 16:49:37 +01:00
Andrew Morgan bc382bba46
Fix pipeline, emoji and syntax (#713)
Fixes #697

Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
2019-06-19 14:05:03 +01:00
SUMUKHA-PK 3655c0d454 Merge branch 'master' of https://github.com/matrix-org/dendrite 2019-05-30 20:59:32 +05:30
Andrew Morgan 7a2d5b17b9
Switch to Buildkite (#712) 2019-05-29 15:17:00 +01:00
Brendan Abolivier bcd6bdb8de
Fix CircleCI badge (#711)
The current one is directed towards @anoadragon453's repo, not the main Matrix.org one.
2019-05-29 14:48:43 +01:00
Andrew Morgan ade4b9c978
Run CircleCI on pull request branches (#710)
We were previously only running CircleCI on master, but we want it to PRs as well.
2019-05-29 11:34:36 +01:00
Andrew Morgan c7c5e8d8e8
Add CircleCI build status 2019-05-29 10:54:44 +01:00
SUMUKHA-PK 3c5c433131 Hopefully build is fixed 2019-05-28 22:09:19 +05:30
Andrew Morgan 1667a4b09f
Add SyTest support to CI (#704)
Adds SyTest CI through CircleCI.

Also need to add all the tests that currently pass to testfile, but I don't think that's a hard blocker for merging.
2019-05-24 15:00:03 +01:00
SUMUKHA-PK 237d87efcc Trying stuff out 2019-05-23 19:43:58 +05:30
SUMUKHA-PK cf2913ad52 Change back kafka version to upstream 2019-05-23 19:26:20 +05:30
Brendan Abolivier e1ec98e248
Update Docker files and remove references to gb (#703)
Fix Docker files which had been forgotten in #594 and update scripts and docs to remove references to gb.

I also removed the `jenkins` directory which is outdated. We can revert f8d7e99 if we realise that it was a mistake to do so.
2019-05-22 10:44:25 +01:00
ruben 74827428bd use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
SUMUKHA-PK 481e9cbca0 Updated kafka version 2019-05-09 08:42:04 +05:30
SUMUKHA-PK 706a53d195 Updated kafka version 2019-05-02 12:46:44 +05:30
SUMUKHA-PK de4b44d69c Updated kafka version 2019-05-02 12:41:41 +05:30
SUMUKHA-PK 7e9d749185 Build issues resolved 2019-05-02 12:09:51 +05:30
SUMUKHA-PK 689e3280c4 Build errors resolved 2019-05-02 10:08:21 +05:30
SUMUKHA-PK 303dcf37de Build errors resolved 2019-05-02 10:02:02 +05:30
SUMUKHA-PK ac81cefbf1 Fix to the JSONMarshal issue 2019-05-02 09:54:27 +05:30
SUMUKHA-PK 9a97a68ff3 Content returned rather than the event (progress) 2019-05-01 18:40:18 +05:30
Andrew Morgan 4d588f7008
Add #dendrite-dev to the README (#699)
I suspect this is why we're getting a lot of people coming in to #dendrite asking dev-related questions.
2019-03-27 17:36:45 +00:00
SUMUKHA-PK 9fc30d85b3 Added TagContent to gomatrix, imported. 2019-03-27 07:07:14 +05:30
SUMUKHA-PK 92bc8a42e2 StatusOK returned on no tags found 2019-03-23 22:59:48 +05:30
Travis Ralston f8f9965cc5
Ensure appservices have their devices checked (#554)
The regular device check will return the device for the appservice's bot user instead of going through the user_id branch. The check has been moved to below the user_id check to ensure the right virtual user's device is chosen.
2019-03-21 08:48:21 -06:00
SUMUKHA-PK 88dd800762 Suggested changes made 2019-03-21 17:38:44 +05:30
SUMUKHA-PK 9ac994cdb7 Suggested changes resolved 2019-03-17 18:44:51 +05:30
SUMUKHA-PK 90cf4b68cd Suggested changes resolved 2019-03-17 18:38:42 +05:30
SUMUKHA-PK 3f88b84798 Build errors resolved 2019-03-16 18:14:00 +05:30
SUMUKHA-PK 03e2de54cc Build issues resolved 2019-03-16 18:05:51 +05:30
SUMUKHA-PK 1321c5cad6 Suggested changes made 2019-03-16 17:55:46 +05:30
SUMUKHA-PK 0b8f040d16 Build errors resolved 2019-03-14 11:32:08 +05:30
SUMUKHA-PK 85edb4033d Suggested changes resolved (Comments, new lines, copyright) 2019-03-14 11:17:40 +05:30
SUMUKHA-PK 80b451df1b metricsName changed 2019-03-14 07:46:51 +05:30
SUMUKHA-PK 30f5a60e8c Linting errors resolved 2019-03-13 19:39:17 +05:30
SUMUKHA-PK 8cff3aca91 Solved linting problems 2019-03-13 19:33:54 +05:30
SUMUKHA-PK 90cc575962 Build errors resolved 2019-03-13 18:19:02 +05:30
SUMUKHA-PK 98de4e7c05 Issue #657 reolved. 2019-03-13 14:59:38 +05:30
SUMUKHA-PK 3da25ee318 Get seems to be done 2019-03-12 21:19:10 +05:30
SUMUKHA-PK 00840e35db Deletion seems to be complete 2019-03-12 21:16:43 +05:30
SUMUKHA-PK 9f7b1290af Interface approach removed, map approach added 2019-03-12 19:52:11 +05:30