From a3e02f2d5137c7ea3661190e0bab73c98df6492f Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Fri, 5 Jan 2024 13:53:50 -0700 Subject: [PATCH] handle invalid gpkg on startup --- .../java/mil/nga/mapcache/repository/GeoPackageRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mapcache/src/main/java/mil/nga/mapcache/repository/GeoPackageRepository.java b/mapcache/src/main/java/mil/nga/mapcache/repository/GeoPackageRepository.java index e48b7399..9c6f49f4 100644 --- a/mapcache/src/main/java/mil/nga/mapcache/repository/GeoPackageRepository.java +++ b/mapcache/src/main/java/mil/nga/mapcache/repository/GeoPackageRepository.java @@ -401,7 +401,8 @@ public List> regenerateTableList() { String database = databasesIterator.next(); // Delete any databases with invalid headers - if (!manager.validateHeader(database)) { + if (!manager.validateHeader(database) || + database.equalsIgnoreCase("ue3.db")) { cache.removeAndClose(database); if (manager.delete(database)) { databasesIterator.remove();