Lengthy scope preview data causes HTTP Error 414

Bug #1318707 reported by Michał Karnicki
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Rest Scopes
Confirmed
Medium
Unassigned

Bug Description

If the scope preview data is too long (and it is sent in the URL), it causes 414 on the server.

ubuntu-rest-scope make start output:

---
(successful surfacing request)
"127.0.0.1 - - [12/May/2014:15:50:46] "GET /<snip>/search?longitude=21.0&q=&platform=dekstop&latitude=52.25&session_id=67508cac-d9dc-11e3-9a5e-08606e7f7bc8 HTTP/1.1" 200 49011 "-" "Python-urllib/3.4"

(failed preview request)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 658, in handle
    handler.handle()
  File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 193, in handle
    self.log_request()
  File "/usr/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 152, in log_request
    resp = GeventResponse(self.status, self.response_headers,
AttributeError: 'PyWSGIHandler' object has no attribute 'response_headers'
<Greenlet at 0x2af43872acd0: <bound method PyWSGIServer.handle of <PyWSGIServer at 0x2af436aa5190 fileno=5 address=0.0.0.0:8000>>(<socket at 0x2af436aa5410 fileno=[Errno 9] Bad fil, ('127.0.0.1', 42231))> failed with AttributeError
---

ubuntu-rest-scope check_scopes result:

---
<snip>
 'title': '<snip>',
 'uri': '<snip>'}

Preview? 0

Previewing...
Error: HTTP Error 414: Request URI Too Long b''
---

Tags: scope-dev
Michał Karnicki (karni)
tags: added: scope-dev
Changed in ubuntu-rest-scopes:
status: New → Confirmed
importance: Undecided → Medium
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.