SSL requested URL exceeds capacity

Bug #612501 reported by Eric Caudal - www.elico-corp.com
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

When clicking to do a return packing from a outgoing packing list, an error appeared:

The requested URL's length exceeds the capacity limit for this server.
Apache/2.2.14 (Ubuntu) Server at xxxxx-corp.net Port 443

openerp 5.12, over Lucid and Apache 2.2.14
The line causing the error is 9000 signs long:

  https://XXXX.XXXXX-corp.net/openo2m/edit?_terp_view_params%2F_terp_model=stock.picking&_terp_view_params%2F_terp_id=142&_terp_view_params%2F_terp_ids=[117%2C%20120%2C%20121%2C%20122%2C%20123%2C%20124%2C%20125%2C%20126%2C%20127%2C%20128%2C%20129%2C%20130%2C%20131%2C%20132%2C%20133%2C%20142]&_terp_view_params%2F_terp_view_ids=[527%2C%20528%2C%20False]&_terp_view_params%2F_terp_view_mode=[u%27tree%27%2C%20u%27form%27%2C%20u%27calendar%27]&_terp_view_params%2F_terp_context={%27lang%27%3A%20u%27en_US%27%2C%20%27tz%27%3A%20False%2C%20%27_terp_view_name%27%3A%20u%27Outgoing%20Products%27%2C%20%27client%27%3A%20%27web%27%2C%20%27contact_display%27%3A%20%27partner%27%2C%20%27active_ids%27%3A%20[450]%2C%20%27active_id%27%3A%20450}&_terp_view_params%2F_terp_view_type=form&_terp_view_params%2Fmove_lines%2F_terp_model=stock.move&_terp_view_params%2Fmove_lines%2F_terp_id=4479&_terp_view_params%2Fmove_lines%2F_terp_ids=[4479%2C%204482%2C%204481%2C%204480]&_terp_view_params%2Fmove_lines%2F_terp_view_ids=[False%2C%20False]&_terp_view_params%2Fmove_lines%2F_terp_view_mode=[%27tree%27%2C%20%27form%27]&_terp_view_params%2Fmove_lines%2F_terp_context={}&_terp_view_params%2Fmove_lines%2F_terp_view_type=form&_terp_parent_model=stock.picking&_terp_parent_id=142&_terp_parent_view_id=528&_terp_o2m=move_lines&_terp_o2m_model=stock.move&_terp_o2m_id=4482&_terp_editable=1&_terp_o2m_context={%27lang%27%3A%20u%27en_US%27%2C%20%27tz%27%3A%20False%2C%20%27address_out_id%27%3A%20339%2C%20%27client%27%3A%20%27web%27%2C%20%27contact_display%27%3A%20%27partner%27%2C%20%27active_ids%27%3A%20[117%2C%20120%2C%20121%2C%20122%2C%20123%2C%20124%2C%20125%2C%20126%2C%20127%2C%20128%2C%20129%2C%20130%2C%20131%2C%20132%2C%20133%2C%20142]%2C%20%27move_line%27%3A%20[%281%2C%204479%2C%20{%27product_uos_qty%27%3A%202.0%2C%20%27address_id%27%3A%20%28339%2C%20u%27XXXX%20XXXC%20Mill\xe9naire%2034000%20XXXXXXXXXXXX%27%29%2C%20%27product_uom%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27sequence%27%3A%200%2C%20%27price_unit%27%3A%200.0%2C%20%27net_weight%27%3A%200%2C%20%27procurements%27%3A%20[]%2C%20%27product_qty%27%3A%202.0%2C%20%27product_uos%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27location_id%27%3A%20%2824%2C%20u%27XXXXXX%20Stock%27%29%2C%20%27priority%27%3A%20u%271%27%2C%20%27sale_line_id%27%3A%20%28865%2C%20u%27[00S01]%20AP0010%20-%20%20Coupe-vent%20BPJ-LS100%20-Manches%20longues%20-%20Brand%3AXXXX%20-%20Size%3AS%20-%20Color%3ABlack%27%29%2C%20%27auto_validate%27%3A%20False%2C%20%27note%27%3A%20u%27100%25%20polyester%20-%20fermeture%20\xe9clair%20-%202%20poches%20-%20imperm\xe9able%20Prot\xe8ge%20du%20vent%20et%20de%20la%20pluie.%20Maintien%20la%20chaleur.%20%27%2C%20%27state%27%3A%20u%27assigned%27%2C%20%27product_packaging%27%3A%20False%2C%20%27purchase_line_id%27%3A%20False%2C%20%27move_history_ids%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27production_id%27%3A%20False%2C%20%27prodlot_id%27%3A%20False%2C%20%27move_dest_id%27%3A%20False%2C%20%27date%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27packages%27%3A%200%2C%20%27name%27%3A%20u%27[00S01]%20AP0010%20-%20%20Coupe-vent%20BPJ-LS100%20-Manches%20longues%20-%20Brand%3A%27%2C%20%27gross_weight%27%3A%200%2C%20%27move_history_ids2%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27product_id%27%3A%20%28167%2C%20u%27[00S01]%20AP0010%20-%20BP%20Jacket%20LS100%20-%20Long%20Sleeves%20-%20Brand%3AXXXX%20-%20Size%3AS%20-%20Color%3ABlack%27%29%2C%20%27date_planned%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27location_dest_id%27%3A%20%288%2C%20u%27Customers%27%29%2C%20%27tracking_id%27%3A%20False%2C%20%27picking_id%27%3A%20%28142%2C%20u%27PCK00072%20%28return%29%20%28return%29%27%29}%29%2C%20%281%2C%204482%2C%20{%27product_uos_qty%27%3A%201.0%2C%20%27address_id%27%3A%20%28339%2C%20u%27XXXX%20XXXX%20Mill\xe9naire%2034000%20XXXXXXXXXXXX%27%29%2C%20%27product_uom%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27sequence%27%3A%200%2C%20%27price_unit%27%3A%200.0%2C%20%27net_weight%27%3A%200%2C%20%27procurements%27%3A%20[]%2C%20%27product_qty%27%3A%201.0%2C%20%27product_uos%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27location_id%27%3A%20%2824%2C%20u%27XXXXXX%20Stock%27%29%2C%20%27priority%27%3A%20u%271%27%2C%20%27sale_line_id%27%3A%20%28868%2C%20u%27[00S01]%20CA5211%20-%20Casquettes%20de%20Baseball%20-%20Fermeture%20ajustable%20Velcro%20%20-%20Brand%3AXXXX%20-%20Size%3AXS-S%20-%20Color%3ABlack%27%29%2C%20%27auto_validate%27%3A%20False%2C%20%27note%27%3A%20u%27100%25%20Polyester%20-%20renforcement%20int\xe9rieur%20en%20Mesh%20Nylon%20-%20Fermeture%20ajustable%20Velcro%20%27%2C%20%27state%27%3A%20u%27assigned%27%2C%20%27product_packaging%27%3A%20False%2C%20%27purchase_line_id%27%3A%20False%2C%20%27move_history_ids%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27production_id%27%3A%20False%2C%20%27prodlot_id%27%3A%20False%2C%20%27move_dest_id%27%3A%20False%2C%20%27date%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27packages%27%3A%200%2C%20%27name%27%3A%20u%27[00S01]%20CA5211%20-%20Casquettes%20de%20Baseball%20-%20Fermeture%20ajustable%20Ve%27%2C%20%27gross_weight%27%3A%200%2C%20%27move_history_ids2%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27product_id%27%3A%20%28605%2C%20u%27[00S01]%20CA5211%20-%20Baseball%20Caps%20-%20Mesh%20Velcro%20Closure%20-%20Brand%3AXXXX%20-%20Size%3AXS-S%20-%20Color%3ABlack%27%29%2C%20%27date_planned%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27location_dest_id%27%3A%20%288%2C%20u%27Customers%27%29%2C%20%27tracking_id%27%3A%20False%2C%20%27picking_id%27%3A%20%28142%2C%20u%27PCK00072%20%28return%29%20%28return%29%27%29}%29%2C%20%281%2C%204481%2C%20{%27product_uos_qty%27%3A%203.0%2C%20%27address_id%27%3A%20%28339%2C%20u%27XXXX%20XXXX%20Mill\xe9naire%2034000%20XXXXXXXXXXXX%27%29%2C%20%27product_uom%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27sequence%27%3A%200%2C%20%27price_unit%27%3A%200.0%2C%20%27net_weight%27%3A%200%2C%20%27procurements%27%3A%20[]%2C%20%27product_qty%27%3A%203.0%2C%20%27product_uos%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27location_id%27%3A%20%2824%2C%20u%27XXXXXX%20Stock%27%29%2C%20%27priority%27%3A%20u%271%27%2C%20%27sale_line_id%27%3A%20%28867%2C%20u%27[00M01]%20CA5211%20-%20Casquettes%20de%20Baseball%20-%20Fermeture%20ajustable%20Velcro%20%20-%20Brand%3AXXXX%20-%20Size%3AS-M%20-%20Color%3ABlack%27%29%2C%20%27auto_validate%27%3A%20False%2C%20%27note%27%3A%20u%27100%25%20Polyester%20-%20renforcement%20int\xe9rieur%20en%20Mesh%20Nylon%20-%20Fermeture%20ajustable%20Velcro%20%27%2C%20%27state%27%3A%20u%27assigned%27%2C%20%27product_packaging%27%3A%20False%2C%20%27purchase_line_id%27%3A%20False%2C%20%27move_history_ids%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27production_id%27%3A%20False%2C%20%27prodlot_id%27%3A%20False%2C%20%27move_dest_id%27%3A%20False%2C%20%27date%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27packages%27%3A%200%2C%20%27name%27%3A%20u%27[00M01]%20CA5211%20-%20Casquettes%20de%20Baseball%20-%20Fermeture%20ajustable%20Ve%27%2C%20%27gross_weight%27%3A%200%2C%20%27move_history_ids2%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27product_id%27%3A%20%28610%2C%20u%27[00M01]%20CA5211%20-%20Baseball%20Caps%20-%20Mesh%20Velcro%20Closure%20-%20Brand%3AXXXX%20-%20Size%3AS-M%20-%20Color%3ABlack%27%29%2C%20%27date_planned%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27location_dest_id%27%3A%20%288%2C%20u%27Customers%27%29%2C%20%27tracking_id%27%3A%20False%2C%20%27picking_id%27%3A%20%28142%2C%20u%27PCK00072%20%28return%29%20%28return%29%27%29}%29%2C%20%281%2C%204480%2C%20{%27product_uos_qty%27%3A%202.0%2C%20%27address_id%27%3A%20%28339%2C%20u%27XXXX%20XXXX%20Mill\xe9naire%2034000%20XXXXXXXXXXXX%27%29%2C%20%27product_uom%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27sequence%27%3A%200%2C%20%27price_unit%27%3A%200.0%2C%20%27net_weight%27%3A%200%2C%20%27procurements%27%3A%20[]%2C%20%27product_qty%27%3A%202.0%2C%20%27product_uos%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27location_id%27%3A%20%2824%2C%20u%27XXXXXX%20Stock%27%29%2C%20%27priority%27%3A%20u%271%27%2C%20%27sale_line_id%27%3A%20%28866%2C%20u%27[00XL01]%20AP0010%20-%20%20Coupe-vent%20BPJ-LS100%20-Manches%20longues%20-%20Brand%3AXXXX%20-%20Size%3AXL%20-%20Color%3ABlack%27%29%2C%20%27auto_validate%27%3A%20False%2C%20%27note%27%3A%20u%27100%25%20polyester%20-%20fermeture%20\xe9clair%20-%202%20poches%20-%20imperm\xe9able%20Prot\xe8ge%20du%20vent%20et%20de%20la%20pluie.%20Maintien%20la%20chaleur.%20%27%2C%20%27state%27%3A%20u%27assigned%27%2C%20%27product_packaging%27%3A%20False%2C%20%27purchase_line_id%27%3A%20False%2C%20%27move_history_ids%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27production_id%27%3A%20False%2C%20%27prodlot_id%27%3A%20False%2C%20%27move_dest_id%27%3A%20False%2C%20%27date%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27packages%27%3A%200%2C%20%27name%27%3A%20u%27[00XL01]%20AP0010%20-%20%20Coupe-vent%20BPJ-LS100%20-Manches%20longues%20-%20Brand%27%2C%20%27gross_weight%27%3A%200%2C%20%27move_history_ids2%27%3A%20[%286%2C%200%2C%20[]%29]%2C%20%27product_id%27%3A%20%28173%2C%20u%27[00XL01]%20AP0010%20-%20BP%20Jacket%20LS100%20-%20Long%20Sleeves%20-%20Brand%3AXXXX%20-%20Size%3AXL%20-%20Color%3ABlack%27%29%2C%20%27date_planned%27%3A%20u%272010-07-29%2017%3A04%3A04%27%2C%20%27location_dest_id%27%3A%20%288%2C%20u%27Customers%27%29%2C%20%27tracking_id%27%3A%20False%2C%20%27picking_id%27%3A%20%28142%2C%20u%27PCK00072%20%28return%29%20%28return%29%27%29}%29]%2C%20%27active_id%27%3A%20142}

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote : Re: [Bug 612501] [NEW] SSL requested URL exceeds capacity
Download full text (12.2 KiB)

this is a apache related issue, a partner of mine got this same problem and
solved it, let me ask him a then forward his comment to you

2010/8/2 elicoidal <email address hidden>

> Public bug reported:
>
> When clicking to do a return packing from a outgoing packing list, an
> error appeared:
>
> The requested URL's length exceeds the capacity limit for this server.
> Apache/2.2.14 (Ubuntu) Server at xxxxx-corp.net Port 443
>
> openerp 5.12, over Lucid and Apache 2.2.14
> The line causing the error is 9000 signs long:
>
> https://XXXX.XXXXX-
>
> corp.net/openo2m/edit?_terp_view_params%2F_terp_model=stock.picking&_terp_view_params%2F_terp_id=142&_terp_view_params%2F_terp_ids=[117%2C%20120%2C%20121%2C%20122%2C%20123%2C%20124%2C%20125%2C%20126%2C%20127%2C%20128%2C%20129%2C%20130%2C%20131%2C%20132%2C%20133%2C%20142]&_terp_view_params%2F_terp_view_ids=[527%2C%20528%2C%20False]&_terp_view_params%2F_terp_view_mode=[u%27tree%27%2C%20u%27form%27%2C%20u%27calendar%27]&_terp_view_params%2F_terp_context={%27lang%27%3A%20u%27en_US%27%2C%20%27tz%27%3A%20False%2C%20%27_terp_view_name%27%3A%20u%27Outgoing%20Products%27%2C%20%27client%27%3A%20%27web%27%2C%20%27contact_display%27%3A%20%27partner%27%2C%20%27active_ids%27%3A%20[450]%2C%20%27active_id%27%3A%20450}&_terp_view_params%2F_terp_view_type=form&_terp_view_params%2Fmove_lines%2F_terp_model=stock.move&_terp_view_params%2Fmove_lines%2F_terp_id=4479&_terp_view_params%2Fmove_lines%2F_terp_ids=[4479%2C%204482%2C%204481%2C%204480]&_terp_view_params%2Fmove_lines%2F_terp_view_ids=[False%2C%20False]&_terp_view_params%2Fmove_lines%2F_terp_view_mode=[%27tree%27%2C%20%27form%27]&_terp_view_params%2Fmove_lines%2F_terp_context={}&_terp_view_params%2Fmove_lines%2F_terp_view_type=form&_terp_parent_model=stock.picking&_terp_parent_id=142&_terp_parent_view_id=528&_terp_o2m=move_lines&_terp_o2m_model=stock.move&_terp_o2m_id=4482&_terp_editable=1&_terp_o2m_context={%27lang%27%3A%20u%27en_US%27%2C%20%27tz%27%3A%20False%2C%20%27address_out_id%27%3A%20339%2C%20%27client%27%3A%20%27web%27%2C%20%27contact_display%27%3A%20%27partner%27%2C%20%27active_ids%27%3A%20[117%2C%20120%2C%20121%2C%20122%2C%20123%2C%20124%2C%20125%2C%20126%2C%20127%2C%20128%2C%20129%2C%20130%2C%20131%2C%20132%2C%20133%2C%20142]%2C%20%27move_line%27%3A%20[%281%2C%204479%2C%20{%27product_uos_qty%27%3A%202.0%2C%20%27address_id%27%3A%20%28339%2C%20u%27XXXX%20XXXC%20Mill\xe9naire%2034000%20XXXXXXXXXXXX%27%29%2C%20%27product_uom%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27sequence%27%3A%200%2C%20%27price_unit%27%3A%200.0%2C%20%27net_weight%27%3A%200%2C%20%27procurements%27%3A%20[]%2C%20%27product_qty%27%3A%202.0%2C%20%27product_uos%27%3A%20%281%2C%20u%27PCE%27%29%2C%20%27location_id%27%3A%20%2824%2C%20u%27XXXXXX%20Stock%27%29%2C%20%27priority%27%3A%20u%271%27%2C%20%27sale_line_id%27%3A%20%28865%2C%20u%27[00S01]%20AP0010%20-%20
> %20Coupe-vent%20BPJ-<http://corp.net/openo2m/edit?_terp_view_params%2F_terp_model=stock.picking&_terp_view_params%2F_terp_id=142&_terp_view_params%2F_terp_ids=[117%2C%20120%2C%20121%2C%20122%2C%20123%2C%20124%2C%20125%2C%20126%2C%20127%2C%20128%2C%20129%2C%20130%2C%20131%2C%20132%2C%20133%2C%20142]&_terp_view_params%2F_terp_view_ids=[527%2...

Revision history for this message
Eric Caudal - www.elico-corp.com (elicoidal) wrote :

I checked in Apache manual and you can increase the limit in Apache to 8
190 (http://httpd.apache.org/docs/1.3/mod/core.html#limitrequestline ).
But this is still not enough.
If any better solution, more than welcome :)
Eric

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

This seems to be a duplicate of bug #519720 (though over SSL).

As a workaround, the directive to set the max HTTP request line size on Apache is LimitRequestLine (http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline); by default is 8KB, it worked for us setting it to 16KB on most situations (but sometimes even 16KB is not enough :( ).

Revision history for this message
xrg (xrg) wrote : Re: [Bug 612501] Re: SSL requested URL exceeds capacity

On Tuesday 03 August 2010, you wrote:
> *** This bug is a duplicate of bug 519720 ***
> https://bugs.launchpad.net/bugs/519720
>
> This seems to be a duplicate of bug #519720 (though over SSL).
>
> As a workaround, the directive to set the max HTTP request line size on
> Apache is LimitRequestLine
> (http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline); by
> default is 8KB, it worked for us setting it to 16KB on most situations
> (but sometimes even 16KB is not enough :( ).
>
> ** This bug has been marked a duplicate of bug 519720
> Too many "invoice_line_ids" for one invoice : HTTP request too long

I wonder why do we use so many parameters to a GET request. Such ones should
only be send with a POST request.

But such a change would be major for the web framework.

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.