GeoWebCache/geowebcache — Issue #96: Error computing zoom level when truncating, metastore disabled, and gridset id not like <XXX_NNN>
Author: groldan
Created: 2012-01-27 19:46:21+00:00
State: open
Labels: Bug

If metastore is disabled and a gridset is not named like EPSG_XXX (or rather does not have _one_ underscore), the following exception is raised:

```
java.lang.ArrayIndexOutOfBoundsException: 2
at org.geowebcache.storage.blobstore.file.FilePathGenerator.findZoomLevel(FilePathGenerator.java:171)
at org.geowebcache.storage.blobstore.file.FilePathFilter.acceptZoomLevelDir(FilePathFilter.java:79)
at org.geowebcache.storage.blobstore.file.FilePathFilter.accept(FilePathFilter.java:55)
at java.io.File.listFiles(Unknown Source)
at org.geowebcache.storage.blobstore.file.FileBlobStore.delete(FileBlobStore.java:344)
at org.geowebcache.storage.StorageBroker.delete(StorageBroker.java:121)
at org.geowebcache.seed.TruncateTask.doActionInternal(TruncateTask.java:56)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)