Closed Bug 793384 Opened 13 years ago Closed 13 years ago

Restrict version numbers to positive integers

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rfkelly, Assigned: rfkelly)

References

Details

Attachments

(2 files)

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.
Actually, negative *floats*, right? :D
OS: Linux → All
Hardware: x86_64 → All
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)
Attachment #679940 - Flags: review?(rnewman) → review+
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.
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 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+
Depends on: 784592
Depends on: 812432
No longer depends on: 784592
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: