SP7-Ritmare / starterkit

Geoinformation Enabling Toolkit (GET-IT)
GNU General Public License v3.0
14 stars 11 forks source link

nginx response 400 with message "bad request Request Header Or Cookie Too Large" after the creation of a "view" with multiple layers #193

Closed ptagliolato closed 5 years ago

ptagliolato commented 5 years ago

How to replicate:

Any request following the creation of the view contains a plethora of cookies like the following one (one cookie per layer):

` 46ad5ce3-fd25-4bdb-b0ef-c588df5da8c3 {"abstract":"No abstract provided","alternate":"ls_risk_3857","bbox_x0":"-19926188.850000001490116","bbox_x1":"19926188.850000001490116","bbox_y0":"-16823984.519999999552965","bbox_y1":"16823984.519999999552965","constraints_other":null,"csw_type":"dataset","csw_wkt_geometry":"POLYGON((-178.999999982 -81.8181818143,-178.999999982 81.8181818143,178.999999982 81.8181818143,178.999999982 -81.8181818143,-178.999999982 -81.8181818143))","data_quality_statement":null,"date":"2019-09-06T07:57:52.440242","date_type…ource_uri":"/api/layers/21/","restriction_code_type":null,"share_count":0,"site_url":"https://docker2.get-it.it/","spatial_representation_type":null,"srid":"EPSG:3857","store_type":"remoteStore","supplemental_information":"No information provided","temporal_extent_end":null,"temporal_extent_start":null,"thumbnail_url":"https://docker2.get-it.it/uploaded/thumbs/layer-46ad5ce3-fd25-4bdb-b0ef-c588df5da8c3-thumb.png","title":"ls_risk_3857","typename":"ls_risk_3857","uuid":"46ad5ce3-fd25-4bdb-b0ef-c588df5da8c3"}

`

Tried to change nginx runtime configuration by adding the line large_client_header_buffers 16 64k; (cf. [http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers](nginx documentation)) to /var/lib/docker/volumes/starterkit-nginxconfd/_data/nginx.conf.envsubst and reloading nginx container (in case of success the config can be persisted in source code file docker/sos-nginx/nginx.conf.envsubst). Tried different values with no success.