I'm dealing with a complaint that REST doesn't validate metadata URLs on
layers the same way the Web UI does.
I got it raising an exception when the value can't be parsed into a URL but
found the unit tests use relative URLs in places (
https://github.com/geoserver/geoserver/blob/master/src/main/src/test/java/org/vfny/geoserver/util/ResponseUtilsTest.java#L61).
I checked the web UI validation and it only accepts full URLs with a schema
of HTTP, HTTPS, or FTP. It seems like this should be consistent: either
the validation should be loosened to allow relative URLs, or the unit tests
should only be using full URLs.
I couldn't find any indication of what's correct in the OGC specs although
that seems to me it would imply inclusiveness.
--
Kevin Smith
Junior Software Engineer | Boundless
[email protected]
+1-778-785-7459
@boundlessgeo <https://twitter.com/boundlessgeo>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel