HTTP-414 URI to long

Bug #1172537 reported by Aaron Rosen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
High
Salvatore Orlando
Aaron Rosen (arosen)
Changed in python-quantumclient:
importance: Undecided → High
Revision history for this message
Maru Newby (maru) wrote :

I'm guessing there should be a limit on the size of the query that quantumclient supports, but is the query actually being transmitted as a GET request? Or is that just an artifact of the debug output? POST would seem the more obvious choice for making a request of non-trivial size, but even then the server needs to limit the size of the request it accepts to limit the potential for DOS attacks.

Revision history for this message
Aaron Rosen (arosen) wrote :

Yea it's definitely a GET. This was a bug introduced in grizzly. This GET is so that the subnet ip address is displayed next to each network. Seems we should break up the GET into multiple requests when the URI length is >8k

Changed in python-quantumclient:
assignee: nobody → Salvatore Orlando (salvatore-orlando)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-quantumclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/27846

Changed in python-quantumclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-quantumclient (master)

Reviewed: https://review.openstack.org/27846
Committed: http://github.com/openstack/python-quantumclient/commit/7c6327e06207ea2107ba15deda76acd764d9d6ad
Submitter: Jenkins
Branch: master

commit 7c6327e06207ea2107ba15deda76acd764d9d6ad
Author: Salvatore Orlando <email address hidden>
Date: Fri May 3 19:46:11 2013 +0200

    Avoid error 414 when retrieving subnet cidrs for ListNetworks

    Bug 1172537

    In order to avoif 414 the list subnet requests will be split in
    multiple requests. The total URI len for each of these requests
    will be lower than 8K (the default maximum for eventlet.wsgi.server).
    The patch tries to submit a single request, and if the URI is too
    long an exception is raised before the request is sent over the
    wire; the exception handler will split the subnet id list, and
    submit the new requests.

    This patch does not address the case in which the server is
    configured with a maximum URI length different from 8K.

    Change-Id: Ia2414cd5374a91d3d12215807037a5d46b836ad6

Changed in python-quantumclient:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
milestone: none → 2.2.1-2.2.6
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.