You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a long reported issue (many tickets in MapServer codebase over a decade or more) where environment variables do not work on all Windows systems (no matter what the web server is)
an example key environment variable, that is relied upon by the MapCache codebase is CURL_CA_BUNDLE
MapCache in /mapcache/lib/http.c faces this same problem on Windows systems (MS4W has had to do various workarounds because of this, for years, for both MapCache and MapServer)
update: I wonder if we could have a new section in mapcache.xml named <environment_variables>, and these would take precedence (use this value, otherwise use the one found at the system level).
Thoughts?
The text was updated successfully, but these errors were encountered:
Old but still open issue. I can confirm this works fine. For the first request! Are there something somewhere inside mapcache that clears the environment between requests? It seems like it.
System
Windows server 2022
IIS 10 + mapcache fast cgi
Steps to reproduce:
Set CURL_CA_BUNDLE
Make first request
Witness one single tile being fetched from a HTTPS-only WMS
Make a second request
Recieve a SSL certificate problem: unable to get local issuer certificate
Restart/kill the fastcgi server
Goto 2
If i set the fast cgi to reload after just one request everything works but obviously VERY slow. So my best guess is that the environment get reset between request and the part that sets environment variables only does so on startup.
I can create a new issue from this if that is more apropriate but it's related to this fix.
CURL_CA_BUNDLE
/mapcache/lib/http.c
faces this same problem on Windows systems (MS4W has had to do various workarounds because of this, for years, for both MapCache and MapServer)<environment_variables>
, and these would take precedence (use this value, otherwise use the one found at the system level).Thoughts?
The text was updated successfully, but these errors were encountered: