Bug report #12114
QGIS Server: proper handling of NULL values in GetFeatureInfo response
|Affected QGIS version:||2.6.0||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20308|
Currently, QGIS server does not properly display NULL values as "NULL" string. String data types appear as empty string "", numeric types appear as "0" - which is clearly wrong and misleading.
QGIS should write "NULL" or the corresponding NULL-Value representation in the response of the GetFeatureInfo request.
in QGIS desktop we have a setting for in
Settings -> Options -> data sources --> Representation of NULL values - how do we handle this in server context? An environment variable? Could "NULL" be the default, if no setting is specified?
Tested with PostgreSQL layers.