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

Issue 2001243002: Change POST-exclusion to idempotent-inclusion (Closed)

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

Description

Change POST-exclusion to idempotent-inclusion The data saver proxy should only be used for idempotent methods, but right now it only checks if the method is POST, which leaves out other non-idempotent methods like PATCH. Instead of excluding POST and PATCH, this will explicitly check if the method is GET, OPTIONS, HEAD, PUT, DELETE, or TRACE. BUG=614078 Committed: https://crrev.com/fbc93e59b496ff6ea423527d1a3579fa8a2d061c Cr-Commit-Position: refs/heads/master@{#395502}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moving IsRequestIdempotent to common util file #

Patch Set 3 : Removing DCHECK that causes test crash. #

Total comments: 4

Patch Set 4 : Removing unneeded header, streamlining method #

Messages

Total messages: 20 (7 generated)
RyanSturm
tbansal: PTAL Let me know if you think I should use the existing check DataReductionProxyBypassProtocol::IsRequestIdempotent, ...
4 years, 7 months ago (2016-05-23 18:23:28 UTC) #2
tbansal1
https://codereview.chromium.org/2001243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc (right): https://codereview.chromium.org/2001243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc#newcode127 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc:127: method == "PUT" || method == "DELETE" || method ...
4 years, 7 months ago (2016-05-23 18:48:42 UTC) #3
RyanSturm
https://codereview.chromium.org/2001243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc (right): https://codereview.chromium.org/2001243002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc#newcode127 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc:127: method == "PUT" || method == "DELETE" || method ...
4 years, 7 months ago (2016-05-23 20:16:35 UTC) #4
tbansal1
couple of nits. https://codereview.chromium.org/2001243002/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc (right): https://codereview.chromium.org/2001243002/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc#newcode7 components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc:7: #include "base/strings/string_util.h" why is string_util.h needed? ...
4 years, 7 months ago (2016-05-23 20:34:48 UTC) #5
RyanSturm
https://codereview.chromium.org/2001243002/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc File components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc (right): https://codereview.chromium.org/2001243002/diff/40001/components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc#newcode7 components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc:7: #include "base/strings/string_util.h" On 2016/05/23 20:34:48, tbansal1 wrote: > why ...
4 years, 7 months ago (2016-05-23 20:38:26 UTC) #6
tbansal1
lgtm
4 years, 7 months ago (2016-05-23 20:41:06 UTC) #7
tbansal1
lgtm lgtm
4 years, 7 months ago (2016-05-23 20:41:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001243002/60001
4 years, 7 months ago (2016-05-23 21:39:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001243002/60001
4 years, 7 months ago (2016-05-23 21:41:31 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/75195)
4 years, 7 months ago (2016-05-23 23:41:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001243002/60001
4 years, 7 months ago (2016-05-24 01:13:58 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-24 01:18:20 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 01:19:50 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fbc93e59b496ff6ea423527d1a3579fa8a2d061c
Cr-Commit-Position: refs/heads/master@{#395502}

Powered by Google App Engine
This is Rietveld 408576698