-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Failed to parse dimension values: no <value> children supplied #173
Comments
Actually @tchaddad once hit this same error in MS4W about 10 months ago, with mapcache-master, but I could never reproduce the error locally: https://ms4w.com/trac/ticket/105 |
My findings are pretty much the same, with the 1.4.1 package from Debian stretch my mapcache configuration (which is a slightly modified default/sample configuration) works as expected, but with the 1.6.1 backport this issue is triggered. |
@sebastic, I'm unable to reproduce when there is no present for a tileset. I've updated the sample xml config file with the correct syntax. |
Even with the new syntax the error remains the same when using MapCache 1.6.1. Having dug through the code a little more, I found the following. In
This will need to use the new syntax like Updating the syntax for the above fixes the issue in my setup. |
While the error at apache startup is resolved, the WMS-C service previously provided by the
An explicit
But then the WFS passthrough no longer works because the requested value cannot be validated. It's unclear to me how WFS passthrough is supposed to be configured now. |
@sebastic can you share how you altered your forwarding rule to include the dimension syntax? I still have this problem, and have 2 forwarding rules that probably should be updated... |
See my previous comment, that's what I use now. Only the WMS-C works, WFS passthrough doesn't. |
Ah ok, thanks - my rules were for just for WMS (GetFeatureInfo and GetLegendGraphic), and syntax was already similar to what you had, so I don't think that was my problem. Unfortunately, adding the syntax from 145a29b to my tilesets is also not solving my problem, so I guess I need to remain at 1.4.1 for now. |
Just to report back with some good news - I was able to finally get past this issue (started Apache successfully with MapCache 1.6), by altering my forwarding rules as follows: Old Syntax:
New Syntax:
Hopefully this is helpful to others. Perhaps an example can be added to the sample config or other docs too? |
hmm maybe it is not related, but I do wonder if we should go ahead and merge that fix in #168 |
Hmm - no I never got the "failed to validate error", just the "failed to parse" because no child element was supplied. But I suppose I should do some tests to actually use the rule and see if it still works as expected. I'm just glad the first step allows Apache to start! Another comment - the reason this error was so confusing was that the error message implies missing |
Yes I'm very happy to hear that you can start Apache now (!!), glad you solved that. |
I created PR #303 on docs to update syntax discrepancies in Proxying Unsupported Requests document. Hope this solves part of the issue. I also created PR #227 on MapCache to address misleading "dimension" reference. Hope this solves another part of the issue. |
It looks like the
<dimensions>
configuration is not actually optional as suggested by comment in the sample configuration.When the
<dimensions>
configuration is not present in the mapcache configuration file, or when the sample configuration is used, apache fails to start:The text was updated successfully, but these errors were encountered: