When pulling values using a CQL Expression the value is not URL encoded.
Using this as a reference:
If the property value has a space in it, ie 'Some Value' the resulting url is: 'http://mysite.com/tn_Some Value.jpg'.
Expecting result to be 'http://mysite.com/tn_Some%20Value.jpg'
Java JDK: OpenJDK Runtime Environment (build 1.8.0_91-b14)
OS: Amazon Linux
'a plausible fix would probably be a url encoding filter function to be called from inside the expression.', this is exactly what I have done for now and works great, thanks!
Would you agree that this is a fairly standard function to provide with the rest of the 'core' functions? I guess I would argue that you cannot really build a proper remote url without this function. Thoughts?
I agree such function would be useful in this context. That said, I believe this is the first request about it since dynamic symbolizers where introduced almost 8 years ago: http://blog.geoserver.org/2008/12/08/dynamic-symbolizers-part-1/
Regardless, importance is of small concern, with a small amount of developers busy to their teeth what really matters is resourcing (funding, or the random developer willing to spend the night or weekend to fix the issue for you).
pull requests welcome?
Pull requests always welcomed!
The rendering and styling engine is down in GeoTools, that would be the best place to make a pull request. Guidelines here: https://github.com/geotools/geotools/blob/master/CONTRIBUTING.md
Mass closing all resolved issues not modified in the last 4 weeks