lizmap-web-client: Error server replied: Request-URI Too Long
Description
I’ve created a WFS service based on a PostgreSQL LineString table. In both QGIS and Lizmap plugin I’ve enabled everyting, that is to say - create, modify, modify geometry and delete. Filtered by group according to a specific field of the table.
Following, part of the GetCapabilities for the layer:
<FeatureType>
<Name>gao_tagliselettivi_2020_linestring</Name>
<Title>gao_tagliselettivi_2020_linestring</Title>
<SRS>EPSG:3003</SRS>
<LatLongBoundingBox minx="1647416.48" maxx="1713820.625" miny="4807680.5" maxy="4884220.59"/>
<Operations>
<Query/>
<Insert/>
<Update/>
<Delete/>
</Operations>
</FeatureType>
After adding the WFS service to QGIS desktop (with a user belonging to an editor group), I can see and query data, and in some cases (the shortest lines) I can divide the line in two pieces, delete one of these and save my edits, but trying to do the same with the longest ones, QGIS throws an error that simply says something like “geometry not modify”.
The Lizmap log reports: 2020-09-15 18:41:44 192.168.0.102 warning 2020-09-15 18:41:44 [2] file_get_contents(http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?__httpbody=<Transaction+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"+service%3D"WFS"+version%3D"1.0.0"+xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"+xmlns%3Axsi%3D"http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance"+xsi%3AschemaLocation%3D"http%3A%2F%2Fwww.qgis.org%2Fgml+http%3A%2F%2F192.168.0.41%2Fcb3mv%2Findex.php%2Flizmap%2Fservice%2F%3Frepository%3Dcb3mv%26amp%3Bproject%3Dstefanini%26amp%3BSERVICE%3DWFS%26amp%3BREQUEST%3DDescribeFeatureType%26amp%3BVERSION%3D1.0.0%26amp%3BTYPENAME%3Dgao_tagliselettivi_2020_linestring"><Update+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"+typeName%3D"gao_tagliselettivi_2020_linestring"><Property+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"><Name+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs">geometry<%2FName><Value+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"><gml%3ALineString+srsName%3D"EPSG%3A3003"><gml%3Acoordinates+cs%3D"%2C"+ts%3D"+">1678813.35000000009313226%2C4844662.84999999962747097+1678812.91999999992549419%2C4844655.57000000029802322+1678811.96999999997206032%2C4844645.4599999999627471+1678809.21999999997206032%2C4844636.13999999966472387+1678805.7 … … a lot of coordinates … 1678201.96999999997206032%2C4839974.20000000018626451+1678203.25%2C4839964.26999999955296516+1678214.27035581972450018%2C4839892.49220392759889364%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ALineString%3E%3C%2FValue%3E%3C%2FProperty%3E%3CFilter+xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3CFeatureId+xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+fid%3D%22gao_tagliselettivi_2020_linestring.797%22%2F%3E%3C%2FFilter%3E%3C%2FUpdate%3E%3C%2FTransaction%3E&map=%2Fhome%2Fgisftp%2Fcb3mv%2Fstefanini.qgs&service=WFS): failed to open stream: HTTP request failed! HTTP/1.1 414 Request-URI Too Long /opt/lizmap/lizmap/modules/lizmap/classes/lizmapProxy.class.php 241
Also the WFS log in QGIS reports: “server replied: Request-URI Too Long”, so after a little googleing I’ve added the variable “LimitRequestLine 4000000” in the apache.conf file. After restarting apache2 the error warning in QGIS becomes more cryptic “server replied: Internal Server Error”
the same in Lizmap log: 2020-09-15 21:41:27 192.168.0.102 warning 2020-09-15 21:41:27 [2] file_get_contents(http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?__httpbody=<Transaction+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"+service%3D"WFS"+version%3D"1.0.0"+xmlns%3Agml%3D"http%3A%2F%2Fwww.opengis.net%2Fgml"+xmlns%3Axsi%3D"http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance"+xsi%3AschemaLocation%3D"http%3A%2F%2Fwww.qgis.org%2Fgml+http%3A%2F%2F192.168.0.41%2Fcb3mv%2Findex.php%2Flizmap%2Fservice%2F%3Frepository%3Dcb3mv%26amp%3Bproject%3Dstefanini%26amp%3BSERVICE%3DWFS%26amp%3BREQUEST%3DDescribeFeatureType%26amp%3BVERSION%3D1.0.0%26amp%3BTYPENAME%3Dgao_tagliselettivi_2020_linestring"><Update+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"+typeName%3D"gao_tagliselettivi_2020_linestring"><Property+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"><Name+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs">geometry<%2FName><Value+xmlns%3D"http%3A%2F%2Fwww.opengis.net%2Fwfs"><gml%3ALineString+srsName%3D"EPSG%3A3003"><gml%3Acoordinates+cs%3D"%2C"+ts%3D"+">1678813.35000000009313226%2C4844662.84999999962747097+1678812.91999999992549419%2C4844655.57000000029802322+1678811.96999999997206032%2C4844645.4599999999627471+1678809.21999999997206032%2C4844636.13999999966472387+1678805.71999999997206032%2C4844627.00999999977648258 … … a lot of coordinates … 1678195.44999999995343387%2C4840024.16999999992549419+1678196.2900000000372529%2C4840019.07000000029802322+1678201.96999999997206032%2C4839974.20000000018626451+1678203.25%2C4839964.26999999955296516+1678210.88874354516156018%2C4839914.5173254581168294%3C%2Fgml%3Acoordinates%3E%3C%2Fgml%3ALineString%3E%3C%2FValue%3E%3C%2FProperty%3E%3CFilter+xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3CFeatureId+xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+fid%3D%22gao_tagliselettivi_2020_linestring.797%22%2F%3E%3C%2FFilter%3E%3C%2FUpdate%3E%3C%2FTransaction%3E&map=%2Fhome%2Fgisftp%2Fcb3mv%2Fstefanini.qgs&service=WFS): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error /opt/lizmap/lizmap/modules/lizmap/classes/lizmapProxy.class.php 241
Environment
The same occurs in two very different configurations:
qgis server 2.18, postgresql 11, lizmap 3.3.6-pre qgis server 3.10, postgresql 12, lizmap 3.3.11-pre
Any idea? full_lizmap.log
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 28 (26 by maintainers)
@Gustry print/getprint after having added a KML > as it gets translated into a sequence of coordinated (WKT?) that is sent in the request, the URL gets quickly very long unless the geometries uploaded are very simple/few. I tried to workaround this at a web server level with the
LimitRequestLine
parameter but at no avail. As far as I understand the request must really be done via POST and not GET.