If the user click on the "Open the file browser" button and cancel the operation with "Cancel" button in the "Open media" window the plugin crash and this message appears:
An error has occurred while executing Python code:
ValueError: no path specified
Traceback (most recent call last):
File "C:\Users/ze_macau/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lizmap\plugin.py", line 2922, in open_media_file_browser
media_path = relpath(data_path, self.project.absolutePath())
File "C:\PROGRA~1\QGIS32~1.15\apps\Python39\lib\ntpath.py", line 694, in relpath
raise ValueError("no path specified")
ValueError: no path specified
Python version: 3.9.18 (heads/master:c290dc6, Jan 14 2024, 01:36:02) [MSC v.1929 64 bit (AMD64)]
QGIS version: 3.28.15-Firenze Firenze, 252ad49ddc
Versions, safeguards, checks summary etc
Versions :
Lizmap Web Client : 3.7.7-pre.7395
Lizmap plugin : 4.3.11
QGIS Desktop : 3.28.15
QGIS Server : 3.28.15
Py-QGIS-Server : not used
QGIS Server plugin atlasprint : 3.3.2
QGIS Server plugin lizmap_server : 2.8.6
QGIS Server plugin wfsOutputExtension : 1.8.0
List of safeguards :
* Mode : normal
* Allow parent folder : no
* Prevent other drive : no
* Prevent PG service : no
* Prevent PG Auth DB : no
* Force PG user&pass : no
* Prevent ECW : no
Check Lizmap plugin
[X] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
What is the bug?
If the user click on the "Open the file browser" button and cancel the operation with "Cancel" button in the "Open media" window the plugin crash and this message appears:
An error has occurred while executing Python code:
ValueError: no path specified Traceback (most recent call last): File "C:\Users/ze_macau/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lizmap\plugin.py", line 2922, in open_media_file_browser media_path = relpath(data_path, self.project.absolutePath()) File "C:\PROGRA~1\QGIS32~1.15\apps\Python39\lib\ntpath.py", line 694, in relpath raise ValueError("no path specified") ValueError: no path specified
Python version: 3.9.18 (heads/master:c290dc6, Jan 14 2024, 01:36:02) [MSC v.1929 64 bit (AMD64)] QGIS version: 3.28.15-Firenze Firenze, 252ad49ddc
Versions, safeguards, checks summary etc
Versions :
List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : no * Prevent PG service : no * Prevent PG Auth DB : no * Force PG user&pass : no * Prevent ECW : no
Check Lizmap plugin