Bug report #14619

update and delete bug when join table on layer

Added by Julien Ancelin over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Normal
Assignee:René-Luc ReLuc
Category:QGIS Server
Affected QGIS version:2.14.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22585

Description

Hi,

When I edit a feature on Qgis-server and my layers add a table join:
if I insert, it's Ok,
but if I update or delete Qgis-server bug and say:

warning 2016-04-06 14:48:33 [2] file_get_contents(http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?featureid=inventaire_gps.7061&geometryname=none&map=%2Fhome%2Fechant_messicol.qgs&outputformat=GeoJSON&request=GetFeature&service=WFS&typename=inventaire_gps&version=1.0.0): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error^M

test with qgis desktop 2.14.1 and qgis-server 2.14.1

If no table join on layer, there is no problem for update or delete.

I think there is another issue but I can not recreate it.

Associated revisions

Revision a6aa8556
Added by René-Luc ReLuc over 8 years ago

[BUGFIX] QGIS Server segfault when features does not have the same fields as the layer.

In some WFS GetFeature request, with Filter or FeatureId, all the fields are not well loaded in the feature.

To fix it, we just verifying that the attribute index is lesser than the feature fields count.

Fixes #14619

Revision 28d2547a
Added by René-Luc ReLuc over 8 years ago

[BUGFIX] QGIS Server segfault when features does not have the same fields as the layer.

In some WFS GetFeature request, with Filter or FeatureId, all the fields are not well loaded in the feature.

To fix it, we just verifying that the attribute index is lesser than the feature fields count.

Fixes #14619

Revision 0aed3f71
Added by René-Luc ReLuc over 8 years ago

[BUGFIX] QGIS Server segfault when features does not have the same fields as the layer.

In some WFS GetFeature request, with Filter or FeatureId, all the fields are not well loaded in the feature.

To fix it, we just verifying that the attribute index is lesser than the feature fields count.

Fixes #14619

History

#1 Updated by René-Luc ReLuc over 8 years ago

  • Assignee set to René-Luc ReLuc

The real issue is that QGIS Server segfault when features does not have the same fields as the layer.

#2 Updated by René-Luc ReLuc over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF