3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
259 stars 143 forks source link

media folder doesn't accept symbolic links for files #267

Closed josemvm closed 8 years ago

josemvm commented 8 years ago

message: no media file in the specified path

rldhont commented 8 years ago

hi @josemvm can you be more explicit ?

josemvm commented 8 years ago

hi rldhont!,

i have my installation on linux.

if i set this link "media/SGO.pdf" in Lizmap plugin/Layers/Selected item settings/Link, the Open documentation for the layer works fine.

if the SGO.pdf isn´t a real file but represented by a symbolic link this error message appears "no media file in the specified path" and de SGO.pdf document will not open.

thanks

rldhont commented 8 years ago

We can't reproduce your issue. Lizmap uses Jelix who uses file_get_contents to read files content. It's probably due to a PHP or Apache configuration.

josemvm commented 8 years ago

ok @rldhont,

i have another sites and another frameworks for web applications in the same server which use "FollowSymLinks" too.

in my case:

if the pdf folder is not a symbolic link but a real folder evething works fine...

rldhont commented 8 years ago

So it's the directory that is a sym link.

josemvm commented 8 years ago

yes, i'm sorry @rldhont,

it's the directory that is a sym link not the media file.

rldhont commented 8 years ago

I reproduced the issue!

josemvm commented 8 years ago

thanks @rldhont