Edgewall Software

Ticket #6855 (closed defect: duplicate)

Opened 10 months ago

Last modified 9 months ago

IntegrityError on milestone creation

Reported by: thuyduongnsx Owned by: jonas
Priority: high Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords: needinfo
Cc:

Description (last modified by thatch) (diff)

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

Change History

Changed 10 months ago by thatch

  • status changed from new to closed
  • resolution set to duplicate
  • description modified (diff)
  • summary changed from Trac detected an internal error to IntegrityError on milestone creation

This is a duplicate of #3652

Changed 10 months ago by thuyduongnsx@…

  • priority changed from normal to high
  • status changed from closed to reopened
  • resolution duplicate deleted

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!

Changed 10 months ago by thatch

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?

Changed 9 months ago by sid

  • keywords needinfo added

Changed 9 months ago by cboos

  • status changed from reopened to closed
  • resolution set to duplicate

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...)

Add/Change #6855 (IntegrityError on milestone creation)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.