Skip to content

[Bug]: On Windows, Layer link use \ instead of / #694

@nworr

Description

@nworr

What is the bug?

On Windows , the layer metadata form allows to browse files to choose a file that will be used as a link on LWC, however the content is displayed (and stored in .cfg) using \ for sub folder.

But this value is used as it on LWC to build the getMedia url see code , and the link is not valid

Image

A patch could convert the value to unix path ("media/foo/bar" ), however it seems to me that this path is used to upload the files on the server (using WebDAV) so it may need to be "OS - dependant " ? (and therefore maybe convert the value on LWC side ? )

Versions, safeguards, checks summary etc

Versions :

  • Lizmap Web Client : 3.9.5 - commit dfcab6880 3liz/lizmap-web-client@dfcab6880
  • Lizmap plugin : 4.5.7
  • QGIS Desktop : 3.40.9
  • Lizmap.com : Yes
  • QGIS Server : 3.40.15
  • Py-QGIS-Server : 1.9.6
  • QGIS Server plugin atlasprint : 3.4.3
  • QGIS Server plugin cadastre : 2.2.5
  • QGIS Server plugin lizmap_server : 2.14.1
  • QGIS Server plugin wfsOutputExtension : 1.8.3
List of Lizmap Web Client modules :
* webdav : 1.2.1 * saas : 1.7.7 * altiProfil : 0.5.10 * altiProfilAdmin : 0.5.10 * mapBuilder : 2.4.3 * mapBuilderAdmin : 2.4.3 * pgmetadata : 1.0.8 * pgmetadataAdmin : 1.0.8 * saml : 2.5.0 * samladmin : 2.5.0
List of safeguards :
* Mode : normal
* Allow parent folder : no
* Prevent other drive : yes
* Prevent PG service : no
* Prevent PG Auth DB : yes
* Force PG user&pass : yes
* Prevent ECW : yes

Check Lizmap plugin

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions