Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

renderd fails silently if trailing slash missing in renderd.conf #2428

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: ColinMarquardt
[Submitted to the original trac issue database at 8.51pm, Monday, 9th November 2009]

The following section in renderd.conf fails silently (only this style is immediately returning 404s for tiles while other stiles work fine):

[hikebike]
URI=/tiles/hikebike

The fix is to add the trailing slash:

[hikebike]
URI=/tiles/hikebike/
@openstreetmap-trac
Copy link
Author

Author: jburgess777[at]googlemail.com
[Added to the original trac issue at 11.54pm, Monday, 9th November 2009]

Looks like this line assumes the baseuri has a trailing /

n = sscanf(r->uri+strlen(tile_config->baseuri), "%d/%d/%d.png/%10s", &(cmd->z), &(cmd->x), &(cmd->y), option);

http://trac.openstreetmap.org/browser/applications/utils/mod_tile/mod_tile.c?rev=17688#L795

I'll look at normalizing things so that it works with or without the trailing /

@openstreetmap-trac
Copy link
Author

Author: jburgess777[at]googlemail.com
[Added to the original trac issue at 9.56pm, Tuesday, 10th November 2009]

fixed in r18545.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant