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

Issue 100623002: Add error handling to validate expectation names. (Closed)

Created:
7 years ago by baxley
Modified:
7 years ago
Reviewers:
craigdh
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add error handling to validate expectation names. Do not allow slashes (\ or /), quotes (" or ') or spaces. BUG=None NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238443

Patch Set 1 #

Total comments: 4

Patch Set 2 : fancy for loop #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M chrome/test/functional/ispy/common/ispy_utils.py View 1 2 4 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
baxley
This CL raises ValueErrors in methods that call UploadImage, to avoid uploading "bad" names. Let ...
7 years ago (2013-12-03 00:23:04 UTC) #1
craigdh
https://codereview.chromium.org/100623002/diff/1/chrome/test/functional/ispy/common/ispy_utils.py File chrome/test/functional/ispy/common/ispy_utils.py (right): https://codereview.chromium.org/100623002/diff/1/chrome/test/functional/ispy/common/ispy_utils.py#newcode19 chrome/test/functional/ispy/common/ispy_utils.py:19: def IsValidExpectationName(expectationName): return any(c in _INVALID_EXPECTATION_CHARS for c in ...
7 years ago (2013-12-03 00:30:50 UTC) #2
baxley
Comments addressed. https://codereview.chromium.org/100623002/diff/1/chrome/test/functional/ispy/common/ispy_utils.py File chrome/test/functional/ispy/common/ispy_utils.py (right): https://codereview.chromium.org/100623002/diff/1/chrome/test/functional/ispy/common/ispy_utils.py#newcode19 chrome/test/functional/ispy/common/ispy_utils.py:19: def IsValidExpectationName(expectationName): On 2013/12/03 00:30:50, craigdh wrote: ...
7 years ago (2013-12-03 00:53:16 UTC) #3
craigdh
lgtm w/ nit https://codereview.chromium.org/100623002/diff/20001/chrome/test/functional/ispy/common/ispy_utils.py File chrome/test/functional/ispy/common/ispy_utils.py (right): https://codereview.chromium.org/100623002/diff/20001/chrome/test/functional/ispy/common/ispy_utils.py#newcode111 chrome/test/functional/ispy/common/ispy_utils.py:111: raise ValueError("Expectation contains an illegal value: ...
7 years ago (2013-12-03 00:56:08 UTC) #4
craigdh
please make sure to run the unittests before landing.
7 years ago (2013-12-03 00:56:49 UTC) #5
baxley
Nit addressed and unit tests passed. I'll wait until tomorrow to land this. https://codereview.chromium.org/100623002/diff/20001/chrome/test/functional/ispy/common/ispy_utils.py File ...
7 years ago (2013-12-03 01:07:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baxley@chromium.org/100623002/40001
7 years ago (2013-12-03 19:58:10 UTC) #7
commit-bot: I haz the power
7 years ago (2013-12-03 19:59:59 UTC) #8
Message was sent while issue was closed.
Change committed as 238443

Powered by Google App Engine
This is Rietveld 408576698