Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit d3861b4

Browse files
committed
Merge branch 'release-v0.11.0' of github.com:matrix-org/synapse
2 parents 16026e6 + bceec65 commit d3861b4

File tree

172 files changed

+8255
-2810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+8255
-2810
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ build/
4242

4343
localhost-800*/
4444
static/client/register/register_config.js
45+
.tox
46+
47+
env/
48+
*.config

AUTHORS.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ Eric Myhre <hash at exultant.us>
4444
repository API.
4545

4646
Muthu Subramanian <muthu.subramanian.karunanidhi at ericsson.com>
47-
* Add SAML2 support for registration and logins.
47+
* Add SAML2 support for registration and login.
48+
49+
Steven Hammerton <steven.hammerton at openmarket.com>
50+
* Add CAS support for registration and login.

CHANGES.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
Changes in synapse v0.11.0 (2015-11-17)
2+
=======================================
3+
4+
* Change CAS login API (PR #349)
5+
6+
Changes in synapse v0.11.0-rc2 (2015-11-13)
7+
===========================================
8+
9+
* Various changes to /sync API response format (PR #373)
10+
* Fix regression when setting display name in newly joined room over
11+
federation (PR #368)
12+
* Fix problem where /search was slow when using SQLite (PR #366)
13+
14+
Changes in synapse v0.11.0-rc1 (2015-11-11)
15+
===========================================
16+
17+
* Add Search API (PR #307, #324, #327, #336, #350, #359)
18+
* Add 'archived' state to v2 /sync API (PR #316)
19+
* Add ability to reject invites (PR #317)
20+
* Add config option to disable password login (PR #322)
21+
* Add the login fallback API (PR #330)
22+
* Add room context API (PR #334)
23+
* Add room tagging support (PR #335)
24+
* Update v2 /sync API to match spec (PR #305, #316, #321, #332, #337, #341)
25+
* Change retry schedule for application services (PR #320)
26+
* Change retry schedule for remote servers (PR #340)
27+
* Fix bug where we hosted static content in the incorrect place (PR #329)
28+
* Fix bug where we didn't increment retry interval for remote servers (PR #343)
29+
30+
Changes in synapse v0.10.1-rc1 (2015-10-15)
31+
===========================================
32+
33+
* Add support for CAS, thanks to Steven Hammerton (PR #295, #296)
34+
* Add support for using macaroons for ``access_token`` (PR #256, #229)
35+
* Add support for ``m.room.canonical_alias`` (PR #287)
36+
* Add support for viewing the history of rooms that they have left. (PR #276,
37+
#294)
38+
* Add support for refresh tokens (PR #240)
39+
* Add flag on creation which disables federation of the room (PR #279)
40+
* Add some room state to invites. (PR #275)
41+
* Atomically persist events when joining a room over federation (PR #283)
42+
* Change default history visibility for private rooms (PR #271)
43+
* Allow users to redact their own sent events (PR #262)
44+
* Use tox for tests (PR #247)
45+
* Split up syutil into separate libraries (PR #243)
46+
147
Changes in synapse v0.10.0-r2 (2015-09-16)
248
==========================================
349

MANIFEST.in

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@ include LICENSE
33
include VERSION
44
include *.rst
55
include demo/README
6+
include demo/demo.tls.dh
7+
include demo/*.py
8+
include demo/*.sh
69

710
recursive-include synapse/storage/schema *.sql
811
recursive-include synapse/storage/schema *.py
912

10-
recursive-include demo *.dh
11-
recursive-include demo *.py
12-
recursive-include demo *.sh
1313
recursive-include docs *
1414
recursive-include scripts *
15+
recursive-include scripts-dev *
1516
recursive-include tests *.py
17+
18+
recursive-include synapse/static *.css
19+
recursive-include synapse/static *.gif
20+
recursive-include synapse/static *.html
21+
recursive-include synapse/static *.js
22+
23+
exclude jenkins.sh
24+
25+
prune demo/etc

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The overall architecture is::
2020
https://somewhere.org/_matrix https://elsewhere.net/_matrix
2121

2222
``#matrix:matrix.org`` is the official support room for Matrix, and can be
23-
accessed by the web client at http://matrix.org/beta or via an IRC bridge at
24-
irc://irc.freenode.net/matrix.
23+
accessed by any client from https://matrix.org/blog/try-matrix-now or via IRC
24+
bridge at irc://irc.freenode.net/matrix.
2525

2626
Synapse is currently in rapid development, but as of version 0.5 we believe it
2727
is sufficiently stable to be run as an internet-facing service for real usage!
@@ -77,14 +77,14 @@ Meanwhile, iOS and Android SDKs and clients are available from:
7777
- https://github.com/matrix-org/matrix-android-sdk
7878

7979
We'd like to invite you to join #matrix:matrix.org (via
80-
https://matrix.org/beta), run a homeserver, take a look at the Matrix spec at
81-
https://matrix.org/docs/spec and API docs at https://matrix.org/docs/api,
82-
experiment with the APIs and the demo clients, and report any bugs via
83-
https://matrix.org/jira.
80+
https://matrix.org/blog/try-matrix-now), run a homeserver, take a look at the
81+
Matrix spec at https://matrix.org/docs/spec and API docs at
82+
https://matrix.org/docs/api, experiment with the APIs and the demo clients, and
83+
report any bugs via https://matrix.org/jira.
8484

8585
Thanks for using Matrix!
8686

87-
[1] End-to-end encryption is currently in development
87+
[1] End-to-end encryption is currently in development - see https://matrix.org/git/olm
8888

8989
Synapse Installation
9090
====================

demo/start.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ for port in 8080 8081 8082; do
2525
--generate-config \
2626
-H "localhost:$https_port" \
2727
--config-path "$DIR/etc/$port.config" \
28+
--report-stats no
2829

2930
# Check script parameters
3031
if [ $# -eq 1 ]; then
@@ -37,6 +38,13 @@ for port in 8080 8081 8082; do
3738

3839
perl -p -i -e 's/^enable_registration:.*/enable_registration: true/g' $DIR/etc/$port.config
3940

41+
if ! grep -F "full_twisted_stacktraces" -q $DIR/etc/$port.config; then
42+
echo "full_twisted_stacktraces: true" >> $DIR/etc/$port.config
43+
fi
44+
if ! grep -F "report_stats" -q $DIR/etc/$port.config ; then
45+
echo "report_stats: false" >> $DIR/etc/$port.config
46+
fi
47+
4048
python -m synapse.app.homeserver \
4149
--config-path "$DIR/etc/$port.config" \
4250
-D \

jenkins.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash -eu
2+
3+
export PYTHONDONTWRITEBYTECODE=yep
4+
5+
# Output test results as junit xml
6+
export TRIAL_FLAGS="--reporter=subunit"
7+
export TOXSUFFIX="| subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml"
8+
9+
# Output coverage to coverage.xml
10+
export DUMP_COVERAGE_COMMAND="coverage xml -o coverage.xml"
11+
12+
# Output flake8 violations to violations.flake8.log
13+
# Don't exit with non-0 status code on Jenkins,
14+
# so that the build steps continue and a later step can decided whether to
15+
# UNSTABLE or FAILURE this build.
16+
export PEP8SUFFIX="--output-file=violations.flake8.log || echo flake8 finished with status code \$?"
17+
18+
tox
19+
20+
: ${GIT_BRANCH:="$(git rev-parse --abbrev-ref HEAD)"}
21+
22+
set +u
23+
. .tox/py27/bin/activate
24+
set -u
25+
26+
rm -rf sytest
27+
git clone https://github.com/matrix-org/sytest.git sytest
28+
cd sytest
29+
30+
git checkout "${GIT_BRANCH}" || (echo >&2 "No ref ${GIT_BRANCH} found, falling back to develop" ; git checkout develop)
31+
32+
: ${PERL5LIB:=$WORKSPACE/perl5/lib/perl5}
33+
: ${PERL_MB_OPT:=--install_base=$WORKSPACE/perl5}
34+
: ${PERL_MM_OPT:=INSTALL_BASE=$WORKSPACE/perl5}
35+
export PERL5LIB PERL_MB_OPT PERL_MM_OPT
36+
37+
./install-deps.pl
38+
39+
./run-tests.pl -O tap --synapse-directory .. --all > results.tap

scripts-dev/check_auth.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ def check_auth(auth, auth_chain, events):
5656

5757
js = json.load(args.json)
5858

59-
6059
auth = Auth(Mock())
6160
check_auth(
6261
auth,
6362
[FrozenEvent(d) for d in js["auth_chain"]],
64-
[FrozenEvent(d) for d in js["pdus"]],
63+
[FrozenEvent(d) for d in js.get("pdus", [])],
6564
)

scripts-dev/check_event_hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from synapse.crypto.event_signing import *
2-
from syutil.base64util import encode_base64
2+
from unpaddedbase64 import encode_base64
33

44
import argparse
55
import hashlib

scripts-dev/check_signature.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11

2-
from syutil.crypto.jsonsign import verify_signed_json
3-
from syutil.crypto.signing_key import (
4-
decode_verify_key_bytes, write_signing_keys
5-
)
6-
from syutil.base64util import decode_base64
2+
from signedjson.sign import verify_signed_json
3+
from signedjson.key import decode_verify_key_bytes, write_signing_keys
4+
from unpaddedbase64 import decode_base64
75

86
import urllib2
97
import json

0 commit comments

Comments
 (0)