Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
9e1b43bc
Commit
9e1b43bc
authored
8 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Comment
parent
ebdafd81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/handlers/federation.py
+4
-0
4 additions, 0 deletions
synapse/handlers/federation.py
synapse/state.py
+2
-0
2 additions, 0 deletions
synapse/state.py
with
6 additions
and
0 deletions
synapse/handlers/federation.py
+
4
−
0
View file @
9e1b43bc
...
...
@@ -688,6 +688,8 @@ class FederationHandler(BaseHandler):
logger
.
warn
(
"
Failed to create join %r because %s
"
,
event
,
e
)
raise
e
# The remote hasn't signed it yet, obviously. We'll do the full checks
# when we get the event back in `on_send_join_request`
self
.
auth
.
check
(
event
,
auth_events
=
context
.
current_state
,
do_sig_check
=
False
)
defer
.
returnValue
(
event
)
...
...
@@ -918,6 +920,8 @@ class FederationHandler(BaseHandler):
)
try
:
# The remote hasn't signed it yet, obviously. We'll do the full checks
# when we get the event back in `on_send_leave_request`
self
.
auth
.
check
(
event
,
auth_events
=
context
.
current_state
,
do_sig_check
=
False
)
except
AuthError
as
e
:
logger
.
warn
(
"
Failed to create new leave %r because %s
"
,
event
,
e
)
...
...
This diff is collapsed.
Click to expand it.
synapse/state.py
+
2
−
0
View file @
9e1b43bc
...
...
@@ -379,6 +379,7 @@ class StateHandler(object):
try
:
# FIXME: hs.get_auth() is bad style, but we need to do it to
# get around circular deps.
# The signatures have already been checked at this point
self
.
hs
.
get_auth
().
check
(
event
,
auth_events
,
do_sig_check
=
False
)
prev_event
=
event
except
AuthError
:
...
...
@@ -391,6 +392,7 @@ class StateHandler(object):
try
:
# FIXME: hs.get_auth() is bad style, but we need to do it to
# get around circular deps.
# The signatures have already been checked at this point
self
.
hs
.
get_auth
().
check
(
event
,
auth_events
,
do_sig_check
=
False
)
return
event
except
AuthError
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment