On Mon, Sep 22, 2025 at 11:45:25AM +0100, we recorded a bogon-computron 
collision of the <[email protected]> flavor, containing:
> I recently did a fresh install, so had no cached tiles, and found that
> the OSM_tiled_mapnik tiles weren't successfully downloaded.
> 
> It turns out that the tile.openstreetmap.org server is issuing redirects
> from http to https which are apparently not being followed by xastir.
> 
> I worked around this by changing the URL in the installed
> OSM_tiled_mapnik.geo file from http to https.
> 
> If this is considered a correct solution then maybe it could be updated
> in the distributed files, though I'm not sure why the redirect is being
> ignored.

The URL is put into an OSM template by the Xastir build process, so the
http URL is in the main Makefile.am.  If it were changed in that one spot
it would be changed in all OSM geo files.

I *think* that this is the correct fix.

cURL does not follow redirects by default, its command line version requires
one to specify arguments telling it to follow them.  Xastir's use of the 
cURL library doesn't do whatever those arguments to the command line cURL would
do.

The ideal, of course, would be to change all of the usage of cURL in Xastir
to add whatever is necessary to tell it to follow redirects, but the short 
term answer is probably just to fix the URL in the first place.  

I have never noticed this issue before, but that's probably because I have
a pretty good tile cache for this very same OSM map (tiled_mapnik is my 
favorite).

I'll do some testing and push out a fix if it works.

-- 
Tom Russo    KM5VY
Tijeras, NM  

 echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m]

_______________________________________________
Xastir mailing list
[email protected]
http://xastir.org/mailman/listinfo/xastir

Reply via email to