Closed
Bug 793384
Opened 13 years ago
Closed 13 years ago
Restrict version numbers to positive integers
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Cloud Services Graveyard
Server: Sync
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rfkelly, Assigned: rfkelly)
References
Details
Attachments
(2 files)
|
6.72 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
|
3.50 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
For sync2.0, let's spec that version numbers are positive integers. This will the kind of silliness found in Bug 793037, where negative integer timestamps are being encountered.
Comment 1•13 years ago
|
||
Actually, negative *floats*, right? :D
OS: Linux → All
Hardware: x86_64 → All
| Assignee | ||
Comment 2•13 years ago
|
||
Might as well restrict other related fields to positive integers while I'm here. Richard, any complaints about the additional restrictions documented in this patch?
Attachment #679940 -
Flags: review?(rnewman)
Updated•13 years ago
|
Attachment #679940 -
Flags: review?(rnewman) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
Docs patch committed: https://github.com/mozilla-services/docs/commit/4ae535933783533a02373aa749b581afbd43ab57
I need to code up some tests for these changes, and likely some tweaks to the server code as well.
| Assignee | ||
Comment 4•13 years ago
|
||
Minimal code patch to restrict various fields/args to positive integers. As I migrate to cornice-format errors I will probably re-do the validation using cornice validators.
Attachment #680933 -
Flags: review?(telliott)
Comment 5•13 years ago
|
||
Comment on attachment 680933 [details] [diff] [review]
code patch restricting various things to positive integers
Gets a positive review, of course (though I had to go back to the original code to check the places where the change was just updating the comment!)
Attachment #680933 -
Flags: review?(telliott) → review+
| Assignee | ||
Updated•13 years ago
|
| Assignee | ||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•