Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6855 closed defect (duplicate)

IntegrityError on milestone creation

Reported by: thuyduongnsx Owned by: Jonas Borgström
Priority: high Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Tim Hatch)

When I type text

text
and after that text
and

I get the error below

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/ticket/roadmap.py", line 359, in process_request
    self._do_save(req, db, milestone)
  File "/usr/lib/python2.3/site-packages/trac/ticket/roadmap.py", line 430, in _do_save
    milestone.insert()
  File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 616, in insert
    (self.name, self.due, self.completed, self.description))
  File "/usr/lib/python2.3/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.3/site-packages/sqlite/main.py", line 255, in execute
    self.rs = self.con.db.execute(SQL % parms)
IntegrityError: column name is not unique

Attachments (0)

Change History (5)

comment:1 by Tim Hatch, 17 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed
Summary: Trac detected an internal errorIntegrityError on milestone creation

This is a duplicate of #3652

comment:2 by thuyduongnsx@…, 17 years ago

Priority: normalhigh
Resolution: duplicate
Status: closedreopened

I read #3652 but I didn't try to create any milestone with the same name as an existing one.

"If you try to create a new milestone with the same name as an existing one, you get a python error message and traceback. This should be handled gracefully with an instruction to the user about choosing another name."

And after that I don't make any thing special such as new line or bold text, italic text. Simply I type some text, but I always get this error, and can't add any milestone

Please help me! Thanks very much!

comment:3 by Tim Hatch, 17 years ago

I had to infer milestone creation by looking at the traceback, you didn't actually give me anything to go on. Describe your error completely, please. What milestones do you have currently? What is the name of the new milestone you are creating? Can you attach a screenshot of how you're filling in the fields, if nothing else?

comment:4 by sid, 17 years ago

Keywords: needinfo added

comment:5 by Christian Boos, 17 years ago

Resolution: duplicate
Status: reopenedclosed

Duplicate of #6808.

(also inferring from the description, I guess he must have missed the milestone name part, and has tried to create more than one unnamed milestone…)

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.