Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward rule or Dimension for FILTER and SLD_BODY parameter #254

Open
guardeivid opened this issue Jul 1, 2021 · 0 comments
Open

Forward rule or Dimension for FILTER and SLD_BODY parameter #254

guardeivid opened this issue Jul 1, 2021 · 0 comments

Comments

@guardeivid
Copy link

Hi, it's possible to use dimension FILTER and SLD_BODY, or to continue the request for REQUEST = GetMap in the cases that include these parameters?

I have not been able to correctly configure for bypass via forward rule, or through dimension

<forwarding_rule name="GetMap_Filter">
     <param name="REQUEST" type="values">
         <value>GetMap</value>
     </param>
     <param name="FILTER" type="regex">
          <regex>^.*$</regex>
     </param>
     <http>
         <url>http://localhost/cgi-bin/mapserv</url>
     </http>
</forwarding_rule>

In this case the filter does not apply

Or

<dimensions>
    <dimension type="regex" name="FILTER" default="%3CFilter%3E%2FFilter%3E">
         <regex>^.*$</regex>
    </dimension>
</dimensions>

In this case this error occurs

[mapcache:error] failed to open file /ms4w/tmp/ms_tmp/cache/layer_name/GoogleMapsCompatible/<Filter><PropertyIsEqualTo><PropertyName>region<#PropertyName><Literal>2<#Literal><#PropertyIsEqualTo><#Filter>/06/000/000/024/000/000/023.png: Unknown error

The cache is on disk

<cache name="disk" type="disk">
      <base>/ms4w/tmp/ms_tmp/cache</base>
      <!--<symlink_blank/>-->
</cache>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant