From 39cae6cc2de0f8d09e3987969834f38135c28210 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 6 Dec 2025 18:38:34 +0100 Subject: [PATCH] Fix server settings backup creation (#1806) The "download conversions headers" caused a SerializationException. kotlinx.serialization.SerializationException: 'null' is not supported as the value of collection types in ProtoBuf --- .../proto/models/BackupSettingsDownloadConversionType.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server-config/src/main/kotlin/suwayomi/tachidesk/manga/impl/backup/proto/models/BackupSettingsDownloadConversionType.kt b/server/server-config/src/main/kotlin/suwayomi/tachidesk/manga/impl/backup/proto/models/BackupSettingsDownloadConversionType.kt index 9a37df43..24bcec55 100644 --- a/server/server-config/src/main/kotlin/suwayomi/tachidesk/manga/impl/backup/proto/models/BackupSettingsDownloadConversionType.kt +++ b/server/server-config/src/main/kotlin/suwayomi/tachidesk/manga/impl/backup/proto/models/BackupSettingsDownloadConversionType.kt @@ -12,10 +12,10 @@ import kotlin.time.Duration class BackupSettingsDownloadConversionType( @ProtoNumber(1) override val mimeType: String, @ProtoNumber(2) override val target: String, - @ProtoNumber(3) override val compressionLevel: Double?, - @ProtoNumber(4) override val callTimeout: Duration?, - @ProtoNumber(5) override val connectTimeout: Duration?, - @ProtoNumber(6) override val headers: List? + @ProtoNumber(3) override val compressionLevel: Double? = null, + @ProtoNumber(4) override val callTimeout: Duration? = null, + @ProtoNumber(5) override val connectTimeout: Duration? = null, + @ProtoNumber(6) override val headers: List? = null ) : SettingsDownloadConversion @OptIn(ExperimentalSerializationApi::class)