Skip to content

Does MapCache REST cache support Basic/Digest authentication? Configuration example needed #346

@samtux

Description

@samtux

I'm trying to configure MapCache REST cache with authentication to a WebDAV server. Here's my current configuration:

<cache name="restcache" type="rest">
    <url>https://gisdev.ambientebogota.gov.co/cache/{tileset}/{grid}/{z}/{x}/{y}.{ext}</url>
    <headers>
        <Host>gisdev.ambientebogota.gov.co</Host>
        <Authorization>Basic user:password_in_base64</Authorization>
    </headers>
</cache>

Working curl command for reference:

curl -v -X MKCOL -u user:ultrasecret "https://gisdev.ambientebogota.gov.co/cache/{tileset}/{grid}/{z}"

mapcache_seed gives the following error:

aborting seed as 100.0% of the last 1000 requests failed
failed to seed tile z1,x0,y0:
curl_easy_perform() failed in rest put with code 409: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>409 Conflict</title>
</head><body>
<h1>Conflict</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

Does MapCache REST cache backend support Basic or Digest authentication?

Environment:

MapCache version: 1.14.1
Apache version: 2.4.57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions