Layer export button missing in LWC 3.9.0
I moved my projects to py-qgis-server and LWC 3.9.0 and now it is not possible to export (the button for it is simply missing, after clicking on the "i", there is no export option.
I'm logged in as admin and have the right to the folder set
QGIS Server 3.40.7 Ubuntu 24.04
This ticket is for Lizmap-Web-Client, not for WfsOutputExtension, which is just a QGIS Server plugin to add more formats by default to QGIS Server, not linked to the visibility of the button in Lizmap.
I guess you hit this new feature ? #5608
But it must have "backward compatibility", is-it an old project, or did you uncheck this checkbox ? (if it's in your CFG file, can you check ? export_enabled https://github.com/3liz/lizmap-plugin/pull/625
in the .cfg of the project i find only two occurences of export_enabled :
"locateByLayer": {},
"attributeLayers": {
"Flurst\u00fccke": {
"layerId": "Flurst_cke_F_2ccf4491_d5d6_43fd_8391_538ffe5a888e",
"primaryKey": "fid",
"hiddenFields": "fid,Hauptnutzung,Aufnahmedatum,VertreterID,Vorg\u00e4ngerflurst\u00fccke,index1,Flurst\u00fcckskennzeichen,FLSTKZ,H\u00f6he,GeoidH\u00f6he,_x_etrs,_area,kennung",
"export_enabled": true,
"pivot": "False",
"hideAsChild": "False",
"hideLayer": "True",
"custom_config": "True",
"order": 0
},
"Geb\u00e4ude": {
"layerId": "Geb_ude_F_f419cbac_aefe_4c16_b1d6_c1a996eaa327",
"primaryKey": "fid",
"hiddenFields": "fid",
"export_enabled": false,
"pivot": "False",
"hideAsChild": "False",
"hideLayer": "True",
"custom_config": "False",
"order": 1
}
},
These are the ones i also have in the "Attribute table&selection" part of the plugin. I can select features and download the selected ones. But i can not click on the "i" in the legend and export the whole layer as it used to be? This is an old project which lwc i recently (yesterday) upgraded to 3.9.0
The "i" -Export layer is also missing on the two layers, export only works via selecting features.
Just for the record:
This is the button which is there in LWC 3.8.3 and missing in 3.9.0
So i played a bit detective, iteratively upgrading an old 3.8.3 project - with the most recent 3.8.11 version, it is still working & the button is there. On 3.9.0-beta.2 it was also still there (last version before this pr https://github.com/3liz/lizmap-web-client/pull/5608 got merged). The next 3.9 version (3.9.0-rc.1) the button is gone.
@Gustry @meyerlor I confirm the bug. I upgraded a server to 3.9.0 (from 3.6) and there is no way I can get the download button to show. Interestingly enough on the same server I have some "old" projects, saved with a .cfg that was not generated with the latest version of the plugin, and there the button do show.
Also the export button do show in attribute table. It seems to be missing only in popup/identify.
Has there been any progress on this issue? Do the new versions 3.9.1 and 3.9.2 resolve the problem?
With the latest 3.9.2 this regression is still not adressed, and 3.8.12 is the version to stick with if that functionallity is crucial (which it is for some of my projects, unfortunately)
@rldhont i tag you here as gustry is the sole 3liz participant here as of now! :)
@meyerlor @loic74 @gioman have you a link to a project in which the button disappear ?
@rldhont i will send you an email with an url and the login data.
This screenshot is from the project/LWC instance i'm sharing with you, under 3.8.12 (only K_Bauwerke is export enabled):
@meyerlor @loic74 @gioman
I have found the issue or rather why the export button in layer information is not available with version 3.9.* with your project. The export button has been introduced with the attributes table feature. In 3.9.*, Some users have requested and funded improved access to vector data. It is:
- OGC Service WFS: Forbidden direct access without rights https://github.com/3liz/lizmap-web-client/pull/5138
- [Feature] Layer export capabilities based on attribute layers configuration https://github.com/3liz/lizmap-web-client/pull/5608
As the second PR explains, it is that the export button is linked to the attributes table configuration and not only to the fact that the layer is published as a WFS layer. So the fact that the export button is available for layers even if there is no attributes table configuration was an issue that has been fixed in 3.9.*
I will discuss it with @mdouchin.
@rldhont thanks for your mail and giving insight into this issue - seems more then legit to be able to control more granular who can export data!
What i don't understand from your answer is though, with everything set right (user has permissions to export a layer + it is allowed in the repository's options) - should the export button for the whole layer then exist like it did in 3.8. or not? Because i have set everything i found to allow me to export a layer as before, but the button still won't appear :(