HomePhabricator

Improve JSON parameter validation
34a2b0978e5aUnpublished

Authored by Tgr on Feb 17 2018, 2:35 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Improve JSON parameter validation

  • make sure strings are NFC-normalized
  • limit number of operations per batch
  • change validation control flow so that it errors out before doing a bunch of database operations if the JSON data is invalid

Bug: T187103
Change-Id: I343ccac8f8b6fa3e1a2771fa52db9948b3336f46

Details

Committed
TgrFeb 18 2018, 9:09 AM
ChangeId
I343ccac8f8b6fa3e1a2771fa52db9948b3336f46

Commit No Longer Exists

This commit no longer exists in the repository.