Edgewall Software

Changes between Initial Version and Version 2 of Ticket #7021


Ignore:
Timestamp:
Apr 2, 2008, 1:20:27 AM (16 years ago)
Author:
Emmanuel Blot
Comment:

To be consistent with other ticket resolution, Trac code does not need to be resilient to undermining error such as direct access to the database.

If the error only occurs in the case of direct handling of the underlying DB, I think wontfix applies here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7021 – Description

    initial v2  
    66
    77Now, I realize that the cause of this is the fact that my manually created database entry is incomplete, but it seems to me that the query code shouldn't just barf in that case. A reasonable solution in this case would seem to be to default the date to '0'. I've attached a patch for 0.10 and trunk that does that.
    8 
     8{{{
    99Traceback (most recent call last):
    1010  File "/data0/sierra/trac/trac-0.10stable/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
     
    2121    val = int(val)
    2222TypeError: int() argument must be a string or a number, not 'NoneType'
    23 
     23}}}