Edgewall Software

Ticket #2982 (reopened defect)

Opened 3 years ago

Last modified 20 months ago

Error updating ticket

Reported by: anonymous Owned by: jonas
Priority: normal Milestone: not applicable
Component: plugin/spamfilter Version: none
Severity: normal Keywords:
Cc:

Description (last modified by cboos) (diff)

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 131, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 194, in process_request
    self._do_save(req, db, ticket)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 344, in _do_save
    newChildren = map(string.atoi, re.findall("\d+", newChildren))
  File "/usr/lib/python2.3/sre.py", line 166, in findall
    return _compile(pattern, 0).findall(string)
TypeError: expected string or buffer

Attachments

Change History

follow-up: ↓ 2   Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to invalid
  • description modified (diff)

Well, the newChildren = map(string.atoi, re.findall("\d+", newChildren)) piece is certainly not coming from the canonical Trac.

Sorry, but we can't help for code/patches we know nothing about...

in reply to: ↑ 1   Changed 2 years ago by anonymous

  • status changed from closed to reopened
  • version changed from 0.9.4 to none
  • resolution invalid deleted

Replying to cboos:

Well, the newChildren = map(string.atoi, re.findall("\d+", newChildren)) piece is certainly not coming from the canonical Trac. Sorry, but we can't help for code/patches we know nothing about...

How about this case then: from http://dev.rubyonrails.org

Got this using Firefox 1.5.0.7 in ubuntu, but exactly the same edit worked on winxp with IE 6. Even tried with a single line 'reply' that contained just the generated 'replying to' line, which was:

Replying to [ticket:5608 rubyonrails@datanomisch.de]:

Error occurred when clicking 'preview'. Posting this message with the same firefox browser and preview is working.

Traceback (most recent call last):
  File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line 220, in dispatch
    resp = chosen_handler.process_request(req)
  File "/opt/csw/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 263, in process_request
    self._validate_ticket(req, ticket)
  File "/opt/csw/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 52, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "build/bdist.solaris-2.11-i86pc/egg/tracspamfilter/adapters.py", line 37, in validate_ticket
  File "build/bdist.solaris-2.11-i86pc/egg/tracspamfilter/api.py", line 78, in test
  File "build/bdist.solaris-2.11-i86pc/egg/tracspamfilter/filters/regex.py", line 39, in test
TypeError: expected string or buffer

  Changed 20 months ago by cboos

  • component changed from general to spamfilter
  • milestone set to none

Well, it also happened once on TracHacks (see TH:#852), so I think it's a reproducible problem.

Add/Change #2982 (Error updating ticket)

Author



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