New upstream version 1.6.1
Andrej Shadura
4 years ago
|
0 |
Synapse 1.6.1 (2019-11-28)
|
|
1 |
==========================
|
|
2 |
|
|
3 |
Security updates
|
|
4 |
----------------
|
|
5 |
|
|
6 |
This release includes a security fix ([\#6426](https://github.com/matrix-org/synapse/issues/6426), below). Administrators are encouraged to upgrade as soon as possible.
|
|
7 |
|
|
8 |
Bugfixes
|
|
9 |
--------
|
|
10 |
|
|
11 |
- Clean up local threepids from user on account deactivation. ([\#6426](https://github.com/matrix-org/synapse/issues/6426))
|
|
12 |
- Fix startup error when http proxy is defined. ([\#6421](https://github.com/matrix-org/synapse/issues/6421))
|
|
13 |
|
|
14 |
|
0 | 15 |
Synapse 1.6.0 (2019-11-26)
|
1 | 16 |
==========================
|
2 | 17 |
|
|
0 |
matrix-synapse-py3 (1.6.1) stable; urgency=medium
|
|
1 |
|
|
2 |
* New synapse release 1.6.1.
|
|
3 |
|
|
4 |
-- Synapse Packaging team <packages@matrix.org> Thu, 28 Nov 2019 11:10:40 +0000
|
|
5 |
|
0 | 6 |
matrix-synapse-py3 (1.6.0) stable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* New synapse release 1.6.0.
|
35 | 35 |
except ImportError:
|
36 | 36 |
pass
|
37 | 37 |
|
38 | |
__version__ = "1.6.0"
|
|
38 |
__version__ = "1.6.1"
|
39 | 39 |
|
40 | 40 |
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
41 | 41 |
# We import here so that we don't have to install a bunch of deps when
|
94 | 94 |
user_id, threepid["medium"], threepid["address"]
|
95 | 95 |
)
|
96 | 96 |
|
|
97 |
# Remove all 3PIDs this user has bound to the homeserver
|
|
98 |
yield self.store.user_delete_threepids(user_id)
|
|
99 |
|
97 | 100 |
# delete any devices belonging to the user, which will also
|
98 | 101 |
# delete corresponding access tokens.
|
99 | 102 |
yield self._device_handler.delete_all_devices_for_user(user_id)
|
76 | 76 |
treq_args={"browser_like_redirects": True},
|
77 | 77 |
ip_whitelist=hs.config.url_preview_ip_range_whitelist,
|
78 | 78 |
ip_blacklist=hs.config.url_preview_ip_range_blacklist,
|
79 | |
http_proxy=os.getenv("http_proxy"),
|
80 | |
https_proxy=os.getenv("HTTPS_PROXY"),
|
|
79 |
http_proxy=os.getenvb(b"http_proxy"),
|
|
80 |
https_proxy=os.getenvb(b"HTTPS_PROXY"),
|
81 | 81 |
)
|
82 | 82 |
self.media_repo = media_repo
|
83 | 83 |
self.primary_base_path = media_repo.primary_base_path
|
317 | 317 |
def build_proxied_http_client(self):
|
318 | 318 |
return SimpleHttpClient(
|
319 | 319 |
self,
|
320 | |
http_proxy=os.getenv("http_proxy"),
|
321 | |
https_proxy=os.getenv("HTTPS_PROXY"),
|
|
320 |
http_proxy=os.getenvb(b"http_proxy"),
|
|
321 |
https_proxy=os.getenvb(b"HTTPS_PROXY"),
|
322 | 322 |
)
|
323 | 323 |
|
324 | 324 |
def build_room_creation_handler(self):
|
576 | 576 |
return self._simple_delete(
|
577 | 577 |
"user_threepids",
|
578 | 578 |
keyvalues={"user_id": user_id, "medium": medium, "address": address},
|
|
579 |
desc="user_delete_threepid",
|
|
580 |
)
|
|
581 |
|
|
582 |
def user_delete_threepids(self, user_id: str):
|
|
583 |
"""Delete all threepid this user has bound
|
|
584 |
|
|
585 |
Args:
|
|
586 |
user_id: The user id to delete all threepids of
|
|
587 |
|
|
588 |
"""
|
|
589 |
return self._simple_delete(
|
|
590 |
"user_threepids",
|
|
591 |
keyvalues={"user_id": user_id},
|
579 | 592 |
desc="user_delete_threepids",
|
580 | 593 |
)
|
581 | 594 |
|