Validate large date values when creating a new team.
Bug #56645 reported by
Diogo Matsubara
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce (using sample data):
1. http://
2. Fill in all the required fields;
3. In 'Number of days a subscription lasts' enter: 10000000;
4. In 'Number of days a renewed subscription lasts' enter: 10000000;
5. Click Add;
6. Crash like: OOPS-224B154 OverflowError date value out of range
Related branches
lp:~sinzui/launchpad/team-renewal-0
- Edwin Grubbs (community): Approve (code)
-
Diff: 329 lines (+111/-102)4 files modifiedlib/lp/registry/interfaces/person.py (+17/-7)
lib/lp/registry/stories/team/xx-team-edit.txt (+10/-27)
lib/lp/registry/stories/teammembership/xx-new-team.txt (+0/-68)
lib/lp/registry/tests/test_team.py (+84/-0)
description: | updated |
description: | updated |
affects: | launchpad-foundations → launchpad-registry |
Changed in launchpad-registry: | |
milestone: | none → 10.10 |
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
I have have a fix for this so I will extend my tests to cover this too.