w3c / Unicorn

Unicorn - W3C's Unified Validator
https://validator.w3.org/unicorn/
Other
128 stars 60 forks source link

AttributeError: Cannot find an implementation of the "IRejectHandler" interface named "CaptchaSystem". Please update the option spam-filter.reject_handler in trac.ini. #173

Closed vivienlacourba closed 8 years ago

vivienlacourba commented 8 years ago

Reported by anonymous on 29 Jun 2013 15:24 UTC

==== How to Reproduce ====

While doing a POST operation on /newticket, Trac issued an internal error.

''(please provide additional details here)''

Request parameters:

{'__FORM_TOKEN': u'932fbdbd6580dc2aa7231de0',
 'author': u'michael.gorischek@hotmail.com',
 'field_cc': u'',
 'field_component': u'Core',
 'field_description': u'Sehr geehrte Damen und Herren,\r\n\r\nwenn ich die css in css (all), css (screen) und css (print) aufteile bekomme ich folgende Warnungen:\r\n\r\n Das Dokument hat den Test bestanden: W3C CSS Validator (Level 3) Direkter Link\r\na Info (1)\r\na Warnungen (8)\r\nURI: http://www.homolittera.com/screen_style.css\t\ta\r\n2 \t\t#content \tErneute Definition von background-color \ta\r\n3 \t\t#content \tErneute Definition von color \ta\r\n4 \t\t#content \tErneute Definition von width \ta\r\n5 \t\t#content \tErneute Definition von margin-left \ta\r\n6 \t\t#content \tErneute Definition von height \ta\r\n10 \t\t#content_inner \tErneute Definition von width \ta\r\n11 \t\t#content_inner \tErneute Definition von height \ta\r\n12 \t\t#content_inner \tErneute Definition von padding-right\r\n\r\nstyle.css (all):\r\n#content {\r\n  border: 0 none;\r\n  padding-top: 10px;\r\n}\r\n\r\n#content_inner {\r\n  border: 0 none;\r\n  background-color: transparent;\r\n  color: #000000;\r\n  overflow-x:hidden;\r\n  overflow-y:auto;\r\n}\r\n\r\nstyle.css (screen):\r\n#content {\r\n  background-color: #c5d1cf;\r\n  color: #000000;\r\n  width: 930px;\r\n  margin-left: 200px;\r\n  height: 650px;\r\n}\r\n\r\n#content_inner {\r\n  width: 920px;\r\n  height: 640px;\r\n  padding-right: 10px;\r\n}\r\n\r\nstyle.css (print):\r\n#content {\r\n  background-color: transparent;\r\n  color: #000000;\r\n  margin-left: 10px;\r\n  width: 1260px;\r\n  height: 100%;\r\n}\r\n\r\n#content_inner {\r\n  padding-right: 10px;\r\n  width: 1260px;\r\n  height: 100%;\r\n}\r\n\r\n',
 'field_keywords': u'',
 'field_milestone': u'1.1',
 'field_priority': u'major',
 'field_summary': u'Falsche Warnungen bez\xfcglich css bei Aufteilung in all/print/screen',
 'field_type': u'defect',
 'field_version': u'1.0',
 'submit': u'Create ticket'}

User Agent was: Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0

==== System Information ====

|| '''Trac''' || 0.11.7 || || '''Python''' || 2.6.6 (r266:84292, Dec 26 2010, 22:48:11) [[GCC 4.4.5]([br]]) || || '''setuptools''' || 0.6 || || '''SQLite''' || 3.7.3 || || '''pysqlite''' || 2.4.1 || || '''Genshi''' || 0.6 || || '''mod_wsgi''' || 3.3 (WSGIProcessGroup sites WSGIApplicationGroup %{GLOBAL}) || || '''Pygments''' || 1.3.1 || || '''Mercurial''' || 1.6.4 || || '''jQuery:''' || 1.4.2 ||

==== Python Traceback ====

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/ticket/web_ui.py", line 183, in process_request
    return self._process_newticket_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/ticket/web_ui.py", line 397, in _process_newticket_request
    valid = self._validate_ticket(req, ticket)
  File "/usr/lib/python2.6/dist-packages/trac/ticket/web_ui.py", line 989, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "/usr/local/lib/python2.6/dist-packages/TracSpamFilter-0.4.7dev_r10628-py2.6.egg/tracspamfilter/adapters.py", line 78, in validate_ticket
    FilterSystem(self.env).test(req, author, changes, ip)
  File "/usr/local/lib/python2.6/dist-packages/TracSpamFilter-0.4.7dev_r10628-py2.6.egg/tracspamfilter/api.py", line 190, in test
    self.reject_handler.reject_content(req, 'Submission rejected as '
  File "/usr/lib/python2.6/dist-packages/trac/config.py", line 534, in __get__
    self.section, self.name))
AttributeError: Cannot find an implementation of the "IRejectHandler" interface named "CaptchaSystem".  Please update the option spam-filter.reject_handler in trac.ini.