Invalid date causing crash on save
Reported by Virgil Dupras | August 1st, 2011 @ 05:18 PM
Application Identifier: com.hardcoded_software.moneyguru
Application Version: 2.3.9
Traceback (most recent call last):
File "/Applications/moneyGuru.app/Contents/Resources/mg_cocoa.plugin/Contents/Resources/mg_cocoa.py", line 213, in saveToFile_
File "core/document.pyc", line 720, in save_to_xml
File "core/saver/native.pyc", line 73, in save
File "core/saver/native.pyc", line 35, in write_transaction_element
File "core/saver/native.pyc", line 17, in date2str
ValueError: year=211 is before 1000; the datetime strftime() methods require year >= 1000
It seems like the date widget mistakenly allowed "211" as a valid year, ultimately causing a crash on save.
Comments and changes to this ticket
-
Virgil Dupras August 13th, 2011 @ 10:26 PM
- State changed from new to accepted
Ahhh, I almost gave up, but I finally found it: bad imports. Take a CSV, and add a date like "01/01/0211" (it's important that the year has 4 digits), and you'll end up with this error when you try to save this document.
We should just be more strict about stuff we import (date year should be > 1000)
-
Virgil Dupras August 14th, 2011 @ 05:12 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras August 14th, 2011 @ 05:30 PM
- State changed from accepted to fixed
(from [bdd8eb5c5277]) [#274 state:fixed] Fixed a bug causing imports to sometimes let bad dates through. https://bitbucket.org/hsoft/moneyguru/changeset/bdd8eb5c5277/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป