Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6443 closed defect (duplicate)

Adding a new version causes an error

Reported by: jsweeney Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version:
Severity: major Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

To Reproduce:

  1. Go to the trac admin section
  2. Click Versions
  3. Add a version with a name of Private Beta and a date of 12/05/2007
  4. Click add

You will recieve: ( at least I did )

Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/var/lib/python-support/python2.4/webadmin/ticket.py", line 243, in process_admin_request
    ver.time = util.parse_date(req.args.get('time'))
  File "/var/lib/python-support/python2.4/trac/util/datefmt.py", line 114, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 12/05/2007 is not a known date format.

Attachments (0)

Change History (7)

comment:1 by sid, 17 years ago

Keywords: needinfo added
Severity: criticalmajor

What version of Trac are you using?

comment:2 by Emmanuel Blot, 17 years ago

Component: generalwebadmin
Description: modified (diff)
Owner: changed from Jonas Borgström to Christopher Lenz
Priority: highnormal

Some hints about the date format are shown close to the date input field.

Did you use the proposed syntax? The date format to use depends on the locale defined on the server.

comment:3 by osimons, 17 years ago

Version: devel

The date format hints have been there a long time. If you use that format an get the error, this is worth looking into.

However, if not, I just tested on current trunk and we no longer give a traceback for this error - It now reports 'Error: Invalid Date' with a good explanation (obviously depending on what the format is for each server):

"12/05/2007" is an invalid date, or the date format is not known. Try "DD.MM.YYYY" instead.

Propose 'worksforme' if no new information becomes available.

comment:4 by osimons, 17 years ago

Version: devel

Oops. Did not intend to set the version. Clearing it again.

comment:5 by anonymous, 17 years ago

I also get this problem using trac 0.95. I dont see any hints about the expected format, and i dont have any existing versions set that i could copy.

Get following error:

 Trac detected an internal error:

30/10/07 is not a known date format. 
Traceback (most recent call last):
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 226, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/web_ui.py", line 106, in process_request
    path_info)
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/ticket.py", line 140, in process_admin_request
    ver.time = util.parse_date(req.args.get('time'))
  File "/misc/WWW/apache-2.0.55/python2.4.3/lib/python2.4/site-packages/trac/util.py", line 458, in parse_date
    raise ValueError, '%s is not a known date format.' % text
ValueError: 30/10/07 is not a known date format. 

I have tried every format i can think of including suggestion above

comment:6 by anonymous, 17 years ago

This appears to be the same as #6172

in reply to:  6 comment:7 by osimons, 17 years ago

Resolution: duplicate
Status: newclosed

Replying to anonymous:

This appears to be the same as #6172

Sure does. Closing as duplicate.

(As for the problem in 0.9.5 - upgrade! The version is two years old, and it will never be fixed for 0.9.x)

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.