Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11906 closed defect (fixed)

The date validation is throwing error.

Reported by: Genie Owned by: Jun Omae
Priority: high Component: WikiGanttChartPlugin
Severity: critical Keywords:
Cc: Trac Release:

Description

When you input a task as macro syntax, the date validation is throwing error.

if you input as below

{{{#!Gantt id="3124d31e34b0" style="blue"
Design db schema, , 2014-08-00, , 
}}}

the date validation is throwing error.

"2014-08-00" is an invalid date, or the date format is not known. Try "YYYY-MM-DD" instead.

and then it cannot be edited forever.

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by Genie

This is patch for that.

  • wikiganttchart/web_ui.py

     
    365365                    continue
    366366                try:
    367367                    d = iso8601_parse_date(task[key])
    368                 except ValueError:
     368                except (TracError, ValueError):
    369369                    raise WikiGanttChartError(_("Invalid date format in line "
    370370                                                "%(lineno): \"%(value)s\"",
    371371                                                lineno=lineno, value=value))

comment:2 Changed 10 years ago by Jun Omae

Resolution: fixed
Status: newclosed

In 14064:

WikiGanttChartPlugin: handle TracError when content in Gantt macro has invalid date string (fixed #11906)

comment:3 Changed 10 years ago by Genie

That's great! Thank you.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.