Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The escaping in Dockerfile on MS_MAP_PATTERN did not work for me #503

Open
atlantageek opened this issue Apr 15, 2023 · 1 comment
Open

Comments

@atlantageek
Copy link

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)$

@sbrunner sbrunner changed the title The escaping in dockerfile on MP_MAP_PATTERN did not work for me. The escaping in Dockerfile on MS_MAP_PATTERN did not work for me. Apr 15, 2023
@sbrunner
Copy link
Member

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 :-)

@sbrunner sbrunner changed the title The escaping in Dockerfile on MS_MAP_PATTERN did not work for me. The escaping in Dockerfile on MS_MAP_PATTERN did not work for me Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants