From a50f82c1eabdc5b2ec64f132f7d70fbae4be97b9 Mon Sep 17 00:00:00 2001 From: Viktor Egorov Date: Tue, 24 Jun 2025 11:07:12 +0200 Subject: [PATCH] Fix SQLite connection string --- gradle/changelog/change_sqlite_connection_path.yaml | 2 ++ .../sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 gradle/changelog/change_sqlite_connection_path.yaml diff --git a/gradle/changelog/change_sqlite_connection_path.yaml b/gradle/changelog/change_sqlite_connection_path.yaml new file mode 100644 index 0000000000..2e9b3ecce8 --- /dev/null +++ b/gradle/changelog/change_sqlite_connection_path.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Adjust connection string to match windows path resolver diff --git a/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java b/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java index f109fb7aba..4bfed5a5ee 100644 --- a/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java +++ b/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java @@ -80,7 +80,7 @@ public class SQLiteQueryableStoreFactory implements QueryableStoreFactory { @ConfigValue(key = "queryableStore.leakDetectionThreshold", defaultValue = DEFAULT_LEAK_DETECTION_THRESHOLD_IN_SECONDS) int leakDetectionThresholdInSeconds ) { this( - "jdbc:sqlite:" + contextProvider.resolve(Path.of("scm.db?shared_cache=true&journal_mode=WAL")), + "jdbc:sqlite:" + contextProvider.resolve(Path.of("scm.db")) + "?shared_cache=true&journal_mode=WAL", objectMapper, keyGenerator, pluginLoader.getExtensionProcessor().getQueryableTypes(),