On Windows, Create Store interface creates invalid URL/path: unable to create store

Description

On Windows using Geoserver 2.10 admin webinterface, try to create a Image Mosaic store by using the browse button and browse to whatever directory outside the GEOSERVER_DATA_DIR folder (be it on c: or d: or e,
eg
d:\data
you will see in the webpage:
file://D:\data
when trying to save it as a store you will see an error message (see windowserror.jpg):

Could not list layers for this store, an error occurred retrieving them. Failed to create reader from file://D:\data and hints is null

Note that in 2.8 the same url's/paths just work:
file://E:\luchtfotos2016
file://D:\data

Funny thing is (see windowserror2.jpg) that browsing for a Shapefile store you will see the same funny file-URL's:
file://C:\temp\provincies\provincies.shp
but at least the creation of the store just works

Maybe it has something to do with the types of datastore (which handle the URL's?) or maybe it has something to do that for a shapefile you point to a FILE and for a MosaicStore you point to a DIRECTORY?

Environment

WIndows binary and war installs.

Tested on both WindowsServer2008 and a recent 64bits WIndows10 Desktop

Status

Assignee

Unassigned

Reporter

Richard Duivenvoorde

Triage

None

Fix versions

Affects versions

2.10.2

Priority

Medium
Configure