[Tile-serving] [openstreetmap/mod_tile] Disallow map section URIs which are starting substrings of subsequent map section URIs (PR #486)
Hummeltech
notifications at github.com
Wed May 28 21:31:25 UTC 2025
This has unexpected effects for `map` section `URI` values which are starting substrings of subsequent `map` section URIs.
E.g. for:
```ini
[map0]
uri=/map1
[map1]
uri=/map1/1
[map2]
uri=/map2/2
```
Only `map0` and `map2` would be served as `map1` starts with the `uri` for `map0`.
Also, for:
```ini
[map0]
uri=/ # or no uri specification at all
[map1]
uri=/map1/1
[map2]
uri=/map2/2
```
Only `map0` would be served as both `map1` and `map2` start with the `uri` for `map0`.
This pull request stops these from being allowed in `renderd.conf` files.
Resolves #27
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/mod_tile/pull/486
-- Commit Summary --
* Disallow map section URIs which are substrings of subsequent map section URIs
-- File Changes --
M etc/apache2/renderd-example-map.conf (2)
M src/renderd_config.c (15)
M tests/renderd_config_test.cpp (27)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/486.patch
https://github.com/openstreetmap/mod_tile/pull/486.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/486
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/pull/486 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250528/315aae9e/attachment.htm>
More information about the Tile-serving
mailing list