Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6172 closed defect (worksforme)

Adding a milestone on the demo results in python error messages

Reported by: richard.rowell@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Just go to the live demo and try to add a milestone

TracGuide — The Trac User and Administration Guide Python Traceback

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 163, in process_admin_request

mil.due = util.parse_date(req.args.get('duedate'))

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: 10/22/2007 is not a known date format.

Attachments (0)

Change History (6)

comment:1 by Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: newclosed
Version: 0.10.4

Look at the Format hint right against the date field:

Format: MM/DD/YY

not

Format: MM/DD/YYYY

comment:2 by richard.rowell@…, 17 years ago

Resolution: worksforme
Status: closedreopened

Did you try the date I tried? Seems pretty clear from the error message that it choked on the date.

comment:3 by anonymous, 17 years ago

Resolution: worksforme
Status: reopenedclosed

Never mind, I did specify a 4 digit date. Though in principal I don't that a python error anytime gives the incorrect date format is a very user friendly way of handling form input.

in reply to:  2 comment:4 by Emmanuel Blot, 17 years ago

Replying to richard.rowell@gmail.com:

Did you try the date I tried? Seems pretty clear from the error message that it choked on the date.

Yes and it failed as expected, since you did not use a valid format for the date - that's the point I was trying to explain in my previous comment.

comment:5 by anonymous, 16 years ago

Resolution: worksforme
Status: closedreopened

Sorry to reopen this, but I am wondering if it is the same problem as #6443?

in reply to:  5 comment:6 by osimons, 16 years ago

Resolution: worksforme
Status: reopenedclosed

Replying to anonymous:

Sorry to reopen this, but I am wondering if it is the same problem as #6443?

Yes. #6443 closed as duplicate of this ticket.

(PS! No need to reopen the ticket to leave a note.)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.