Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Invalid date causing crash on save

#274
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.

Reported by Virgil Dupras · August 1st, 2011 @ 05:18 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • 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)

    August 13th, 2011 @ 10:26 PM

  2. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    August 14th, 2011 @ 05:12 PM

  3. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    (from [bdd8eb5c5277]) [#274 Invalid date causing crash on save state:fixed] Fixed a bug causing imports to sometimes let bad dates through. https://bitbucket.org/hsoft/moneyguru/changeset/bdd8eb5c5277/

    August 14th, 2011 @ 05:30 PM

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.