Skip to content

Network error should not result in a Apache syntax error for a WMTS source #357

@marisn

Description

@marisn

Our national mapping agency struggles to keep their ArcGIS based servers up and running all the time – quite often they reply with an error (e.g. 503). Unfortunately in a such case, it is not possible to operate MapCache, as it fails when a configuration file is parsed. This is bad as a single broken WMTS source means that Apache process will fail to start. It is also impossible to use (undocumented!) fallback source, as each individual source is parsed first.

The GDAL source performs some checks on data source that requires opening of the source thus I don't see how to easily work around the issue.

if( GDALGetProjectionRef( hDataset ) != NULL

# apachectl configtest
ERROR 1: HTTP error code : 503
ERROR 1: Missing Capabilities.Contents element
AH00526: Syntax error on line 58 of /etc/apache2/sites-enabled/prod.conf:
gdalOpen failed on data /home/conf/source.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions