Trying to startup a clean Geoserver 2.9-trunk instance on top of a GEOSERVER_DATA_DIR based on "/data/release" geoserver's source folder, I'm getting a DiskQuota configuration exception (see the attached log). As far as I can see the GeoserverXMLResourceProvider.findOrCreateConfFile method has this code: Resource xmlFile = findConfigFile(); if (Resources.exists(xmlFile)) { log.info("Found configuration file in " + configDirectory.path()); } else if (templateLocation != null) { // grab template from classpath try { IOUtils.copy(getClass().getResourceAsStream(templateLocation), xmlFile.out()); } catch (IOException e) { throw new IOException("Error copying template config to " + xmlFile.path(), e); } } return xmlFile; } Therefore, if the file doesn't exist and the templateLocation is null it will return that file anyway. Afterwards, the FileSystemResourceStore.in method will create an empty file and the parser will throw that exception. |