tel8618217223380 / sagetv-addons

Automatically exported from code.google.com/p/sagetv-addons
0 stars 0 forks source link

Improve parameter checking in Task Editor #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Need more robust checking of user supplied data in the task Editor.

Original issue reported on code.google.com by tom.mira...@gmail.com on 31 Oct 2010 at 1:35

GoogleCodeExporter commented 9 years ago
I made the following assumptions about the parameters:
- TaskID can't be null or all spaces.  It can only contain A-Za-z0-9.
- TaskID must be unique on a per-client basis.
- Executable can't be null or all spaces
- Test Script can't be null or all spaces (How would a user specify no test 
script or "always do this executable"?)
- Maximum Instances >= 0
- Maximum RC >= 0
- Minimum RC >= 0 (intuitively I would thing a negative RC should be allowed.)
- Maximum RC >= Minimum RC
- Maximum Time > 0
- Resources >= 0 (Is 0 really allowed?)
- Time Ratio > 0

Original comment by tom.mira...@gmail.com on 6 Nov 2010 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by de...@battams.ca on 9 Apr 2013 at 2:12