camptocamp/docker-mapserver

The escaping in Dockerfile on MS_MAP_PATTERN did not work for me

atlantageek opened this issue · 1 comments

The escaping defined in Dockerfile did not seem necessary and it was never finding my map file.
I changed it to this and it worked.
#MS_MAP_PATTERN=^\/etc\/mapserver\/([^\\.][-_A-Za-z0-9\.]+\/{1})([-_A-Za-z0-9\.]+\.map)$
MS_MAP_PATTERN=^/etc/mapserver/([^\.][-_A-Za-z0-9.]+/{1})
([-_A-Za-z0-9.]+.map)$

This is working for us and in the acceptance tests: https://github.com/camptocamp/docker-mapserver/blob/master/acceptance_tests/test_map.py
And I'm afraid to create regression by changing that...

Note that can easily override by setting the concerned environment variable :-)