Edgewall Software

Ticket #943 (closed defect: duplicate)

Opened 4 years ago

Last modified 2 years ago

Problem when creating new ticket with custom fields

Reported by: pawel [no]spam rsc pl Owned by: jonas
Priority: normal Milestone: 0.8
Component: ticket system Version: devel
Severity: normal Keywords:
Cc:

Description (last modified by cmlenz) (diff)

Definitions in trac.ini:

   [ticket-custom]
   test_four = select
   test_four.label = Closed
   test_four.options = Not Confirmed|Confirmed

   [notification]
   smtp_replyto = trac@spamsite
   smtp_always_cc =
   smtp_server = my.smtp.server
   smtp_enabled = true
   smtp_from = myuser@mysite
   always_notify_reporter = true

When i'm submiting ticket with custom fileds the has Oops apeard:

Trac detected an internal error:
len() of unsized object

Traceback (most recent call last):
  File "/usr/local/lib/python2.3/site-packages/trac/core.py", line 525, in cgi_start
    real_cgi_start()
  File "/usr/local/lib/python2.3/site-packages/trac/core.py", line 520, in real_cgi_start
    dispatch_request(path_info, args, req, env)
  File "/usr/local/lib/python2.3/site-packages/trac/core.py", line 435, in dispatch_request
    module.run()
  File "/usr/local/lib/python2.3/site-packages/trac/Module.py", line 44, in run
    self.render()
  File "/usr/local/lib/python2.3/site-packages/trac/Ticket.py", line 298, in render
    self.create_ticket()
  File "/usr/local/lib/python2.3/site-packages/trac/Ticket.py", line 290, in create_ticket
    tn.notify(ticket, newticket=1)
  File "/usr/local/lib/python2.3/site-packages/trac/Notify.py", line 189, in notify
    self.hdf.setValue('email.ticket_props', self.format_props())
  File "/usr/local/lib/python2.3/site-packages/trac/Notify.py", line 250, in format_props
    if len(tkt[f]) > width[idx+1]:
TypeError: len() of unsized object

However ticket is added to datebase but no notification is send.

Attachments

Change History

Changed 4 years ago by cmlenz

  • status changed from new to closed
  • resolution set to duplicate
  • component changed from general to ticket system
  • description modified (diff)

Duplicate of #929.

Changed 2 years ago by anonymous

  • status changed from closed to reopened
  • resolution duplicate deleted

Changed 2 years ago by athomas

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

Please don't reopen tickets without a reason.

Add/Change #943 (Problem when creating new ticket with custom fields)

Author



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