Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)

Created:
3 years, 8 months ago by Sergey Ulanov
Modified:
3 years, 8 months ago
Reviewers:
kelvinp, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SignalingAddress in SignalStrategy insterface. Previously SignalStrategy::GetLocalJid() was returning non-normalized JID. The value was passed as is to the authenticator in JingleSessionManager::OnSignalStrategyIncomingStanza(). Client used normalized JID value from SignalingAddress for authentication. As result authentication was failing for hosts that use mixed-case accounts. With this change GetLocalJid() is replaced with GetLocalAddress(), which allows to ensure that JID is normalized on both ends of connection. BUG=707833 Review-Url: https://codereview.chromium.org/2798393007 Cr-Commit-Position: refs/heads/master@{#463737} Committed: https://chromium.googlesource.com/chromium/src/+/9fe3bc8107285979782a49dbcf0a37cfe0187696

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : \sync #

Patch Set 3 : header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -159 lines) Patch
M remoting/client/chromoting_client.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/gcd_state_updater.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/gcd_state_updater_unittest.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M remoting/host/heartbeat_sender.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/heartbeat_sender_unittest.cc View 10 chunks +2 lines, -18 lines 0 comments Download
M remoting/host/host_change_notification_listener.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M remoting/host/host_change_notification_listener_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/host_status_logger_unittest.cc View 5 chunks +4 lines, -9 lines 0 comments Download
M remoting/host/it2me/it2me_host_unittest.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/register_support_host_request.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M remoting/host/register_support_host_request_unittest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/signaling_connector.cc View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/protocol/jingle_session.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/jingle_session_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/jingle_session_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 10 chunks +27 lines, -16 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 chunk +3 lines, -15 lines 0 comments Download
M remoting/protocol/session_manager.h View 2 chunks +5 lines, -4 lines 0 comments Download
M remoting/signaling/delegating_signal_strategy.h View 4 chunks +4 lines, -3 lines 0 comments Download
M remoting/signaling/delegating_signal_strategy.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M remoting/signaling/fake_signal_strategy.h View 5 chunks +5 lines, -4 lines 0 comments Download
M remoting/signaling/fake_signal_strategy.cc View 5 chunks +13 lines, -11 lines 0 comments Download
M remoting/signaling/iq_sender_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/signaling/log_to_server_unittest.cc View 4 chunks +2 lines, -5 lines 0 comments Download
M remoting/signaling/mock_signal_strategy.h View 3 chunks +7 lines, -2 lines 0 comments Download
M remoting/signaling/mock_signal_strategy.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M remoting/signaling/push_notification_subscriber.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M remoting/signaling/push_notification_subscriber_unittest.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M remoting/signaling/signal_strategy.h View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/signaling/xmpp_signal_strategy.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/signaling/xmpp_signal_strategy.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M remoting/test/protocol_perftest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/test/test_chromoting_client_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
Sergey Ulanov
3 years, 8 months ago (2017-04-08 00:28:20 UTC) #4
joedow
lgtm https://codereview.chromium.org/2798393007/diff/20001/remoting/protocol/jingle_session_unittest.cc File remoting/protocol/jingle_session_unittest.cc (right): https://codereview.chromium.org/2798393007/diff/20001/remoting/protocol/jingle_session_unittest.cc#newcode55 remoting/protocol/jingle_session_unittest.cc:55: const char kHostJid[] = "host@gmail.com/123"; Do we already ...
3 years, 8 months ago (2017-04-10 16:46:42 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/2798393007/diff/20001/remoting/protocol/jingle_session_unittest.cc File remoting/protocol/jingle_session_unittest.cc (right): https://codereview.chromium.org/2798393007/diff/20001/remoting/protocol/jingle_session_unittest.cc#newcode55 remoting/protocol/jingle_session_unittest.cc:55: const char kHostJid[] = "host@gmail.com/123"; On 2017/04/10 16:46:42, joedow ...
3 years, 8 months ago (2017-04-10 19:58:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798393007/40001
3 years, 8 months ago (2017-04-11 17:55:22 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/402815)
3 years, 8 months ago (2017-04-11 18:18:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798393007/60001
3 years, 8 months ago (2017-04-11 18:45:06 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 19:58:14 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9fe3bc8107285979782a49dbcf0a...

Powered by Google App Engine
This is Rietveld 408576698