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

Issue 1987163002: Add DOMAIN_MISMATCH message end to end (Closed)

Created:
4 years, 7 months ago by Hzj_jie
Modified:
4 years, 6 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This change is to add DOMAIN_MISMATCH message end to end. Currently if host client domain policy has been enabled, and client with a different domain tries to access a host in it2me scenario, invalid access code will be shown, but indeed the error message should be domain mismatch. BUG=611544 Committed: https://crrev.com/49b8bb897e86d171f9a5379086d9dec6812549a2 Cr-Commit-Position: refs/heads/master@{#395215}

Patch Set 1 #

Patch Set 2 : Keep the order of ChromotingEvent list #

Total comments: 5

Patch Set 3 : Change DOMAIN_MISMATCH to INVALID_ACCOUNT, and use security-error jingle message reason as a short … #

Patch Set 4 : ConnectionListener has not been updated. #

Patch Set 5 : Add TODO in Jingle session #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -11 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/jni/ConnectionListener.java View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M remoting/base/chromoting_event.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M remoting/client/client_telemetry_logger.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/client/ios/build/localizable_string_id_list.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/client/server_log_entry_client.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/authenticator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/errors.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/errors.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/it2me_host_authenticator_factory.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/jingle_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/jingle_messages.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M remoting/protocol/me2me_host_authenticator_factory.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/resources/remoting_strings.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/chromoting_event.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/base/js/client_session.js View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M remoting/webapp/base/js/error.js View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Hzj_jie
This change is to add DOMAIN_MISMATCH message end to end. Currently if host client domain ...
4 years, 7 months ago (2016-05-19 19:22:17 UTC) #5
kelvinp
lgtm The fact that we need to change 18 files for adding an error code ...
4 years, 7 months ago (2016-05-19 22:39:36 UTC) #8
Hzj_jie
Add Scott for iOS client related change, though it should not be impacted.
4 years, 7 months ago (2016-05-19 23:05:10 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/errors.h File remoting/protocol/errors.h (right): https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/errors.h#newcode27 remoting/protocol/errors.h:27: UNKNOWN_ERROR, please keep UNKNOWN_ERROR the last error in the ...
4 years, 7 months ago (2016-05-20 00:07:05 UTC) #12
Sergey Ulanov
On 2016/05/19 22:39:36, kelvinp wrote: > lgtm > > The fact that we need to ...
4 years, 7 months ago (2016-05-20 00:10:35 UTC) #13
Hzj_jie
On 2016/05/20 00:07:05, Sergey Ulanov wrote: > https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/errors.h > File remoting/protocol/errors.h (right): > > https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/errors.h#newcode27 ...
4 years, 7 months ago (2016-05-20 00:33:56 UTC) #14
Hzj_jie
On 2016/05/20 00:33:56, Hzj_jie wrote: > On 2016/05/20 00:07:05, Sergey Ulanov wrote: > > > ...
4 years, 7 months ago (2016-05-20 19:04:04 UTC) #15
Hzj_jie
Kelvin, would you please LGTM again?
4 years, 7 months ago (2016-05-20 22:38:57 UTC) #16
kelvinp
https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/jingle_messages.cc File remoting/protocol/jingle_messages.cc (right): https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/jingle_messages.cc#newcode47 remoting/protocol/jingle_messages.cc:47: { JingleMessage::DOMAIN_MISMATCH, "domain-mismatch" }, On 2016/05/20 00:07:05, Sergey Ulanov ...
4 years, 7 months ago (2016-05-20 22:44:12 UTC) #17
kelvinp
On 2016/05/20 22:44:12, kelvinp wrote: > https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/jingle_messages.cc > File remoting/protocol/jingle_messages.cc (right): > > https://codereview.chromium.org/1987163002/diff/80001/remoting/protocol/jingle_messages.cc#newcode47 > ...
4 years, 7 months ago (2016-05-20 23:19:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987163002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987163002/140001
4 years, 7 months ago (2016-05-20 23:53:24 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 7 months ago (2016-05-21 00:24:31 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/49b8bb897e86d171f9a5379086d9dec6812549a2 Cr-Commit-Position: refs/heads/master@{#395215}
4 years, 7 months ago (2016-05-21 00:26:43 UTC) #25
Sergey Ulanov
> According to Sergey's comments, I will do following changes, > 1. Rename DOMAIN_MISMATCH into ...
4 years, 6 months ago (2016-05-31 12:56:10 UTC) #26
Hzj_jie
4 years, 6 months ago (2016-05-31 17:51:50 UTC) #27
Message was sent while issue was closed.
Hi, Sergey,
Yes, Kelvin and me are both clear with your comments. I am now working on
crd:error-code solution. But considering it's not directly related to the
issue itself, i.e. we won't give a meaning message to the end users if
policy does not allow remote connection from a different domain, combining
two changes will eventually make the code review be large and not focus.

On Tue, May 31, 2016 at 5:56 AM, <sergeyu@chromium.org> wrote:

> > According to Sergey's comments, I will do following changes,
> > 1. Rename DOMAIN_MISMATCH into INVALID_ACCOUNT
> > 2. Use Jingle security-error instead of domain-mismatch for a short term
> > solution
> > 3. Update localization string to remove domain / host keywords
>
> Sorry if it wasn't clear from my previous comments. I don't think we gain
> anything from adding security-error reason here. It's better to just add
> the
> error tag. Since this change didn't make it to the M52 branch I suggest
> removing
> security-error and just use <error-code> instead.
>
> https://codereview.chromium.org/1987163002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698