[Geoserver-devel] [JIRA] (GEOS-7937) Remove or make optional URL checks for grid formats

Devon Tucker created an issue

GeoServer / ImprovementGEOS-7937

Remove or make optional URL checks for grid formats

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Components:

UI

Created:

19/Jan/17 7:41 PM

Priority:

MediumMedium

Reporter:

Devon Tucker

Currently when adding a grid format data store GeoServer performs basic checks to see check the URL is “valid”. With the advent of things like S3 and HDFS there is a desire (see discussions on gs-devel/users) to host grid formats on these services. On the GeoTools side this is actually somewhat straightforward, as ImageInputStream can be adapted to support these protocols; however, the GeoServer UI’s concept of what constitutes a valid UI is very narrow:

  • Only HTTP, HTTPS and FTP are allowed
  • FileExistsValidator tries to open a connection and get the InputStream of the URL
  • FileModel ends up converting the URL to a file:// URL, even when it already has a protocol
  • ResourcePool converts this to a File

It’s worth noting that the REST API skips all these steps, so to me it seems that these should all be optional. In my mind, it’s really up to the grid format to determine what is and is not a valid URL for its purposes.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.695.1#100025-sha1:c4480eb)

Atlassian logo