Edgewall Software
Modify

Opened 18 years ago

Closed 14 years ago

#2982 closed defect (fixed)

Error updating ticket

Reported by: anonymous Owned by:
Priority: normal Milestone: plugin - spam-filter
Component: plugin/spamfilter Version: none
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

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 (0)

Change History (6)

comment:1 by Christian Boos, 18 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

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 comment:2 by anonymous, 18 years ago

Resolution: invalid
Status: closedreopened
Version: 0.9.4none

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

comment:3 by Christian Boos, 17 years ago

Component: generalspamfilter
Milestone: none

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

comment:4 by Christian Boos, 14 years ago

Milestone: not applicablespam-filter-plugin
Owner: Jonas Borgström removed
Status: reopenednew

comment:5 by Dirk Stöcker, 14 years ago

Still an issue?

comment:6 by Dirk Stöcker, 14 years ago

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.