g3w-admin
g3w-admin copied to clipboard
Updating a previously `.qgis` project fails silently
Checklist
- [X] I've searched through the existing issues and this bug has never been reported before
Subject of the issue
I'm trying to replace a previously uploaded qgis project with a new one via administrative interface, but once saved it always shows the previous file.
Steps to reproduce
- download and unzip G3WSUITE_3.5.zip
- extract
project_data\spatialite
folder and upload it as is to server (eg: into\shared-volume\project_data\spatialite
) - extract
projects/building-management-demo.qgs
and create a new project via g3w-admin interface - save it and re-open the edit page (eg: http://localhost:8000/it/admin/qdjango/buildings/projects/update/public-building-management-demo/)
- the displayed
.qgis
project file name should match the following:
- now extract
projects/building-management-demo-2.qgs
- upload it to the previously created project via g3w-admin interface, saving it and re-opening the edit page (eg: http://localhost:8000/it/admin/qdjango/buildings/projects/update/public-building-management-demo/)
- the displayed
.qgis
project file name still match the previous one:
That is: building-management-demo.qgs
instead of building-management-demo-2.qgs
Environment
- g3w-admin: 3.5.dev-20230313134606
- g3w-client: 3.8.0-alpha.1
- browser: Firefox 111.0
- operating system: Windows 10 64-bit
Link to your project
http://localhost:8000/it/admin/qdjango/buildings/projects/update/public-building-management-demo/
Additional info
The admin interface does not return any errors (e.g. preventing file saving), below the docker container log at the time of saving:
Logged warning: Loading a file that was saved with a newer version of qgis (saved in 3.26.0-Buenos Aires, loaded in 3.22.16-Białowieża). Problems may occur.
[] - Picture expression eval error
[] - Picture expression eval error
[] - Picture expression eval error
[] - Picture expression eval error
[] - Picture expression eval error
[] - Picture expression eval error
[Server] - Warning, Layer(s) buildings_2f43dc1d_6725_42d2_a09b_dd446220104a, buildings_rating_3d535fae_fd04_4df6_b6ff_8cbd13df078f, maintenance_works_f8cbe34a_eebe_4cd1_9c78_5d420ab0af63, roads_ea006d6f_bd87_4635_aae0_4e9e7842b3f4, type_subtype_caec4a0b_e7c4_4542_b59c_769f2033d6b1, work_areas_f0ecbe28_cbd1_4a38_8a57_ab6da91473fe not valid in project /shared-volume/media/temp_uploads/8be0b0fde1844b1ab3dd10e812c55d99.qgs