HTTPExpectationFailed(u'This is not a self-posting form. ' HTTPExpectationFailed:

Bug #855998 reported by JimPGlenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Carlos de la Guardia

Bug Description

Reported via error monitor:

Wed Sep 21 18:45:43 2011 Exception when processing https://karl.soros.org/communities/ct-abuse-in-africa/blog/fw-documents-from-kampala-terrorism-case-1/comments/add_comment.html Referer: Traceback (most recent call last): File "/srv/osfkarl/production/30/eggs/karl-3.71-py2.6.egg/karl/errorlog.py", line 18, in middleware return app(environ, start_response) File "/srv/osfkarl/production/30/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py", line 88, in __call__ app_iter = self.application(environ, replace_start_response) File "/srv/osfkarl/production/30/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py", line 21, in __call__ result = self.next_app(environ, start_response) File "/srv/osfkarl/production/30/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py", line 23, in __call__ result = self.application(environ, save_status_and_headers) File "/srv/osfkarl/production/30/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py", line 107, in __call__ app_iter = app(environ, wrapper.wrap_start_response) File "/srv/osfkarl/production/30/eggs/repoze.urchin-0.1-py2.6.egg/repoze/urchin/__init__.py", line 20, in __call__ resp = req.get_response(self.app) File "/srv/osfkarl/production/30/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 920, in get_response application, catch_exc_info=False) File "/srv/osfkarl/production/30/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 888, in call_application app_iter = application(self.environ, start_response) File "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py", line 130, in __call__ response = view_callable(context, request) File "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1520, in __call__ return view(context, request) File "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view return view(context, request) File "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view response = view(context, request) File "/srv/osfkarl/production/30/eggs/repoze.bfg.formish-0.3-py2.6.egg/repoze/bfg/formish/zcml.py", line 171, in __call__ return controller() File "/srv/osfkarl/production/30/eggs/karl-3.71-py2.6.egg/karl/content/views/commenting.py", line 161, in __call__ raise HTTPExpectationFailed(u'This is not a self-posting form. ' HTTPExpectationFailed: 417 Expectation Failed Content-Type: text/html; charset=UTF-8 Content-Length: 0

Tags: r3.73
JimPGlenn (jpglenn09)
Changed in karl3:
importance: Undecided → Medium
assignee: nobody → Chris Rossi (chris-archimedeanco)
milestone: none → m74
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 855998] [NEW] HTTPExpectationFailed(u'This is not a self-posting form. ' HTTPExpectationFailed:
Download full text (6.2 KiB)

I believe this is something we just accept "shouldn't be possible but can happen". Namely, someone cuts-and-pastes the URL to the form.

Chris, I think this should be Invalid?

--Paul

On Sep 21, 2011, at 8:05 PM, JimPGlenn wrote:

> Public bug reported:
>
> Reported via error monitor:
>
> Wed Sep 21 18:45:43 2011 Exception when processing
> https://karl.soros.org/communities/ct-abuse-in-africa/blog/fw-documents-
> from-kampala-terrorism-case-1/comments/add_comment.html Referer:
> Traceback (most recent call last): File
> "/srv/osfkarl/production/30/eggs/karl-3.71-py2.6.egg/karl/errorlog.py",
> line 18, in middleware return app(environ, start_response) File
> "/srv/osfkarl/production/30/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py",
> line 88, in __call__ app_iter = self.application(environ,
> replace_start_response) File
> "/srv/osfkarl/production/30/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py",
> line 21, in __call__ result = self.next_app(environ, start_response)
> File
> "/srv/osfkarl/production/30/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py",
> line 23, in __call__ result = self.application(environ,
> save_status_and_headers) File
> "/srv/osfkarl/production/30/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py",
> line 107, in __call__ app_iter = app(environ,
> wrapper.wrap_start_response) File
> "/srv/osfkarl/production/30/eggs/repoze.urchin-0.1-py2.6.egg/repoze/urchin/__init__.py",
> line 20, in __call__ resp = req.get_response(self.app) File
> "/srv/osfkarl/production/30/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py",
> line 920, in get_response application, catch_exc_info=False) File
> "/srv/osfkarl/production/30/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py",
> line 888, in call_application app_iter = application(self.environ,
> start_response) File
> "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py",
> line 130, in __call__ response = view_callable(context, request) File
> "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py",
> line 1520, in __call__ return view(context, request) File
> "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py",
> line 1753, in _secured_view return view(context, request) File
> "/srv/osfkarl/production/30/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py",
> line 1704, in _rendered_view response = view(context, request) File
> "/srv/osfkarl/production/30/eggs/repoze.bfg.formish-0.3-py2.6.egg/repoze/bfg/formish/zcml.py",
> line 171, in __call__ return controller() File
> "/srv/osfkarl/production/30/eggs/karl-3.71-py2.6.egg/karl/content/views/commenting.py",
> line 161, in __call__ raise HTTPExpectationFailed(u'This is not a self-
> posting form. ' HTTPExpectationFailed: 417 Expectation Failed Content-
> Type: text/html; charset=UTF-8 Content-Length: 0
>
> ** Affects: karl3
> Importance: Medium
> Assignee: Chris Rossi (chris-archimedeanco)
> Status: New
>
> ** Changed in: karl3
> Importance: Undecided => Medium
>
> ** Changed in: karl3
> Assignee: (unassigned) => Chris Rossi (chris-archimedeanco)
>
> ** Changed i...

Read more...

Changed in karl3:
milestone: m74 → m76
Changed in karl3:
status: New → Invalid
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

It's possible we could detect this condition and send an appropriate redirect.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Putting on Carlos's plate for next week

Changed in karl3:
assignee: Chris Rossi (chris-archimedeanco) → Carlos de la Guardia (cguardia)
status: Invalid → In Progress
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

I *think* this is due to a bug that existed in an earlier version of the code that failed to properly add re-catalog things when they were restored from trash. This bug is fixed now, but the corrupted data remains on staging. I've kicked off a sync from production in order to clear this up. This is just a theory, so heavy testing is especially warranted to make sure this problem does not recur.

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Comment #4 above is intended for a different ticket, sorry.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Instead of the exception we now redirect to real comments page.

Changed in karl3:
status: In Progress → Fix Committed
JimPGlenn (jpglenn09)
tags: added: r3.73
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.