Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#6782 closed defect (duplicate)

Crash when entering invalid version year.

Reported by: bennydaon@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version: 0.10-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I made the mistake of entering a date of 03/06/2008. It's easy to reproduce and It should be easy to solve - I'm still running a hosted version, so I can't develop a patch.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4429-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4429-py2.4.egg/webadmin/ticket.py", line 243, in process_admin_request
    ver.time = util.parse_date(req.args.get('time'))
  File "/usr/lib/python2.4/site-packages/trac/util/datefmt.py", line 114, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 03/06/2008 is not a known date format.

BTW - You have built a great system, thanks. I've been in development organization for over 15 years and I was always looking for better IT for my team - TRAC does it well! Keep it up

Attachments (0)

Change History (1)

comment:1 by osimons, 16 years ago

Component: trac-adminwebadmin
Priority: highnormal
Resolution: duplicate
Status: newclosed
Version: devel0.10-stable

You say you use the current development version (0.11), but from the traceback it looks like you are using Trac 0.10.x with WebAdmin plugin.

This has been improved in upcoming 0.11, that now gives a regular error message:

"03/06/2008" is an invalid date, or the date format is not known.
Try "DD.MM.YYYY" instead.

Closing as duplicate of #4927.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.