diff --git a/build.gradle b/build.gradle index ba978260..47411909 100644 --- a/build.gradle +++ b/build.gradle @@ -52,8 +52,9 @@ sourceSets { java { if (System.getenv("DOCKER_ENABLE_SECURITY") == "false") { exclude "stirling/software/SPDF/config/security/**" - exclude "stirling/software/SPDF/controller/api/UserController.java" exclude "stirling/software/SPDF/controller/api/DatabaseController.java" + exclude "stirling/software/SPDF/controller/api/UserController.java" + exclude "stirling/software/SPDF/controller/api/H2SQLCondition.java" exclude "stirling/software/SPDF/controller/web/AccountWebController.java" exclude "stirling/software/SPDF/controller/web/DatabaseWebController.java" exclude "stirling/software/SPDF/model/ApiKeyAuthenticationToken.java" @@ -70,7 +71,6 @@ sourceSets { exclude "stirling/software/SPDF/UI/impl/**" } - } } diff --git a/src/main/java/stirling/software/SPDF/config/security/database/DatabaseService.java b/src/main/java/stirling/software/SPDF/config/security/database/DatabaseService.java index b0a04702..f11acda3 100644 --- a/src/main/java/stirling/software/SPDF/config/security/database/DatabaseService.java +++ b/src/main/java/stirling/software/SPDF/config/security/database/DatabaseService.java @@ -178,9 +178,9 @@ public class DatabaseService implements DatabaseInterface { } catch (CannotReadScriptException e) { log.error("Error during database export: File {} not found", insertOutputFilePath); } - } - log.info("Database export completed: {}", insertOutputFilePath); + log.info("Database export completed: {}", insertOutputFilePath); + } } private static void deleteOldestBackup(List filteredBackupList) { @@ -226,7 +226,7 @@ public class DatabaseService implements DatabaseInterface { ApplicationProperties.Datasource datasource = applicationProperties.getSystem().getDatasource(); return !datasource.isEnableCustomDatabase() - || datasource.getType().equals(ApplicationProperties.Driver.H2.name()); + || datasource.getType().equalsIgnoreCase(ApplicationProperties.Driver.H2.name()); } /** diff --git a/src/main/java/stirling/software/SPDF/config/security/database/ScheduledTasks.java b/src/main/java/stirling/software/SPDF/config/security/database/ScheduledTasks.java index 1bad2104..8597935f 100644 --- a/src/main/java/stirling/software/SPDF/config/security/database/ScheduledTasks.java +++ b/src/main/java/stirling/software/SPDF/config/security/database/ScheduledTasks.java @@ -2,13 +2,16 @@ package stirling.software.SPDF.config.security.database; import java.sql.SQLException; +import org.springframework.context.annotation.Conditional; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import stirling.software.SPDF.config.interfaces.DatabaseInterface; +import stirling.software.SPDF.controller.api.H2SQLCondition; import stirling.software.SPDF.model.provider.UnsupportedProviderException; @Component +@Conditional(H2SQLCondition.class) public class ScheduledTasks { private final DatabaseInterface databaseService; diff --git a/src/main/java/stirling/software/SPDF/controller/api/DatabaseController.java b/src/main/java/stirling/software/SPDF/controller/api/DatabaseController.java index 8a5231c7..0c7e7160 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/DatabaseController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/DatabaseController.java @@ -8,6 +8,7 @@ import java.nio.file.Path; import java.nio.file.StandardCopyOption; import org.eclipse.jetty.http.HttpStatus; +import org.springframework.context.annotation.Conditional; import org.springframework.core.io.InputStreamResource; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; @@ -30,6 +31,7 @@ import stirling.software.SPDF.config.security.database.DatabaseService; @Controller @RequestMapping("/api/v1/database") @PreAuthorize("hasRole('ROLE_ADMIN')") +@Conditional(H2SQLCondition.class) @Tag(name = "Database", description = "Database APIs for backup, import, and management") public class DatabaseController { diff --git a/src/main/java/stirling/software/SPDF/controller/api/H2SQLCondition.java b/src/main/java/stirling/software/SPDF/controller/api/H2SQLCondition.java new file mode 100644 index 00000000..ebdb1f05 --- /dev/null +++ b/src/main/java/stirling/software/SPDF/controller/api/H2SQLCondition.java @@ -0,0 +1,19 @@ +package stirling.software.SPDF.controller.api; + +import org.springframework.context.annotation.Condition; +import org.springframework.context.annotation.ConditionContext; +import org.springframework.core.type.AnnotatedTypeMetadata; + +public class H2SQLCondition implements Condition { + + @Override + public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { + boolean enableCustomDatabase = + Boolean.parseBoolean( + context.getEnvironment() + .getProperty("system.datasource.enableCustomDatabase")); + String dataSourceType = context.getEnvironment().getProperty("system.datasource.type"); + return !enableCustomDatabase + || (enableCustomDatabase && "h2".equalsIgnoreCase(dataSourceType)); + } +} diff --git a/src/main/java/stirling/software/SPDF/controller/web/DatabaseWebController.java b/src/main/java/stirling/software/SPDF/controller/web/DatabaseWebController.java index 8c9f9108..0aadc2d7 100644 --- a/src/main/java/stirling/software/SPDF/controller/web/DatabaseWebController.java +++ b/src/main/java/stirling/software/SPDF/controller/web/DatabaseWebController.java @@ -37,6 +37,9 @@ public class DatabaseWebController { List backupList = databaseService.getBackupList(); model.addAttribute("backupFiles", backupList); model.addAttribute("databaseVersion", databaseService.getH2Version()); + if ("Unknown".equalsIgnoreCase(databaseService.getH2Version())) { + model.addAttribute("infoMessage", "notSupported"); + } return "database"; } } diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties index 5e789c89..d337b9da 100644 --- a/src/main/resources/messages_ar_AR.properties +++ b/src/main/resources/messages_ar_AR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=لم يتم العثور على الملف database.fileNullOrEmpty=يجب ألا يكون الملف فارغًا أو خاليًا database.failedImportFile=فشل استيراد الملف +database.notSupported=This function is not available for your database connection. session.expired=لقد انتهت جلستك. يرجى تحديث الصفحة والمحاولة مرة أخرى session.refreshPage=تحديث الصفحة diff --git a/src/main/resources/messages_az_AZ.properties b/src/main/resources/messages_az_AZ.properties index 6fe55e8b..d57903b4 100644 --- a/src/main/resources/messages_az_AZ.properties +++ b/src/main/resources/messages_az_AZ.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Fayl Tapılmadı database.fileNullOrEmpty=Fayl boş və ya "null" olmamalıdır database.failedImportFile=Faylı daxil etmək alınmadı +database.notSupported=This function is not available for your database connection. session.expired=Sessiyanızın vaxtı bitdi. Səhifəni yeniləyin və yenidən cəhd edin. session.refreshPage=Səhifəni Yenilə diff --git a/src/main/resources/messages_bg_BG.properties b/src/main/resources/messages_bg_BG.properties index 7ce437f7..32a35f43 100644 --- a/src/main/resources/messages_bg_BG.properties +++ b/src/main/resources/messages_bg_BG.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Файлът не е намерен database.fileNullOrEmpty=Файлът не трябва да е нулев или празен database.failedImportFile=Неуспешно импортиране на файл +database.notSupported=This function is not available for your database connection. session.expired=Вашата сесия е изтекла. Моля, опреснете страницата и опитайте отново. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_ca_CA.properties b/src/main/resources/messages_ca_CA.properties index 858ef598..6bb08975 100644 --- a/src/main/resources/messages_ca_CA.properties +++ b/src/main/resources/messages_ca_CA.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Fitxer no trobat database.fileNullOrEmpty=El fitxer no ha de ser nul o buit database.failedImportFile=Error en la importació del fitxer +database.notSupported=This function is not available for your database connection. session.expired=La teva sessió ha expirat. Si us plau, actualitza la pàgina i torna a intentar-ho. session.refreshPage=Actualitza la pàgina diff --git a/src/main/resources/messages_cs_CZ.properties b/src/main/resources/messages_cs_CZ.properties index ffc38239..94c3ed7c 100644 --- a/src/main/resources/messages_cs_CZ.properties +++ b/src/main/resources/messages_cs_CZ.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Soubor nemůže být null nebo prázdný database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Vaše sesace vypršela. Prosím obnovte stránku a zkusit to znovu. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_da_DK.properties b/src/main/resources/messages_da_DK.properties index 5b402c1e..01833673 100644 --- a/src/main/resources/messages_da_DK.properties +++ b/src/main/resources/messages_da_DK.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Fil ikke fundet database.fileNullOrEmpty=Fil må ikke være null eller tom database.failedImportFile=Kunne ikke importere fil +database.notSupported=This function is not available for your database connection. session.expired=Din sesions tid har udløbet. Genlad siden og prøv igen. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties index 5fcc383a..25f1bd51 100644 --- a/src/main/resources/messages_de_DE.properties +++ b/src/main/resources/messages_de_DE.properties @@ -249,6 +249,7 @@ database.backupCreated=Datenbanksicherung erfolgreich database.fileNotFound=Datei nicht gefunden database.fileNullOrEmpty=Datei darf nicht null oder leer sein database.failedImportFile=Dateiimport fehlgeschlagen +database.notSupported=This function is not available for your database connection. session.expired=Ihre Sitzung ist abgelaufen. Bitte laden Sie die Seite neu und versuchen Sie es erneut. session.refreshPage=Seite aktualisieren diff --git a/src/main/resources/messages_el_GR.properties b/src/main/resources/messages_el_GR.properties index 76fb9455..172ea33c 100644 --- a/src/main/resources/messages_el_GR.properties +++ b/src/main/resources/messages_el_GR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Το αρχείο δεν μπορεί να είναι τυχόν ή κενό. database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Η σεζώνη σας υπάρξει παραγωγή. Πατήστε για να ανανεώσετε το πλήρωμα και δοκιμάστε ξανά. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 85495a6f..f12a40e3 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed to import file +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 59c7fccd..cf8987c0 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_es_ES.properties b/src/main/resources/messages_es_ES.properties index cdf3cc2c..0175d76a 100644 --- a/src/main/resources/messages_es_ES.properties +++ b/src/main/resources/messages_es_ES.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Archivo no encontrado database.fileNullOrEmpty=El archivo no debe ser nulo o vacío. database.failedImportFile=Archivo de importación fallido +database.notSupported=This function is not available for your database connection. session.expired=Tu sesión ha caducado. Actualice la página e inténtelo de nuevo. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_eu_ES.properties b/src/main/resources/messages_eu_ES.properties index dd5e70f9..1bb82e78 100644 --- a/src/main/resources/messages_eu_ES.properties +++ b/src/main/resources/messages_eu_ES.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_fa_IR.properties b/src/main/resources/messages_fa_IR.properties index 779b95ee..2543a713 100644 --- a/src/main/resources/messages_fa_IR.properties +++ b/src/main/resources/messages_fa_IR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=فایل پیدا نشد database.fileNullOrEmpty=فایل نباید خالی یا تهی باشد database.failedImportFile=وارد کردن فایل ناموفق بود +database.notSupported=This function is not available for your database connection. session.expired=نشست شما به پایان رسیده است. لطفاً صفحه را تازه‌سازی کرده و دوباره تلاش کنید. session.refreshPage=تازه‌سازی صفحه diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties index b4729eb8..268f2644 100644 --- a/src/main/resources/messages_fr_FR.properties +++ b/src/main/resources/messages_fr_FR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Fichier ne peut pas être null ou vide database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Votre session a expiré. Veuillez recharger la page et réessayer. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_ga_IE.properties b/src/main/resources/messages_ga_IE.properties index 1f3ab38d..7132a6f0 100644 --- a/src/main/resources/messages_ga_IE.properties +++ b/src/main/resources/messages_ga_IE.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Comhad gan aimsiú database.fileNullOrEmpty=Níor cheart go mbeadh an comhad ar neamhní nó folamh database.failedImportFile=Theip ar iompórtáil an chomhaid +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_hi_IN.properties b/src/main/resources/messages_hi_IN.properties index 1c0529b2..23046fb1 100644 --- a/src/main/resources/messages_hi_IN.properties +++ b/src/main/resources/messages_hi_IN.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_hr_HR.properties b/src/main/resources/messages_hr_HR.properties index 87044fbd..5db5fa19 100644 --- a/src/main/resources/messages_hr_HR.properties +++ b/src/main/resources/messages_hr_HR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Datoteka ne smije biti null ili prazna database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Vaš sesija je istekla. Molim vas da osvježite stranicu i pokušate ponovno. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_hu_HU.properties b/src/main/resources/messages_hu_HU.properties index f7fbe946..8b39a5d3 100644 --- a/src/main/resources/messages_hu_HU.properties +++ b/src/main/resources/messages_hu_HU.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Fájlnull vagy üres nélkül nem lehet folytatni database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=A munkamenet letelezett. Frissítse a lapot és próbálkozzon újra. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_id_ID.properties b/src/main/resources/messages_id_ID.properties index 1503cf22..40f10940 100644 --- a/src/main/resources/messages_id_ID.properties +++ b/src/main/resources/messages_id_ID.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Berkas tidak Ditemukan database.fileNullOrEmpty=Berkas tidak boleh null atau kosong database.failedImportFile=Impor Berkas Gagal +database.notSupported=This function is not available for your database connection. session.expired=Sesi Anda telah kedaluwarsa. Silakan muat ulang halaman dan coba lagi. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_it_IT.properties b/src/main/resources/messages_it_IT.properties index 6a298539..9afc8279 100644 --- a/src/main/resources/messages_it_IT.properties +++ b/src/main/resources/messages_it_IT.properties @@ -249,6 +249,7 @@ database.backupCreated=Backup del database riuscito database.fileNotFound=File non trovato database.fileNullOrEmpty=Il file non deve essere nullo o vuoto database.failedImportFile=Importazione file non riuscita +database.notSupported=This function is not available for your database connection. session.expired=La tua sessione è scaduta. Aggiorna la pagina e riprova. session.refreshPage=Aggiorna pagina diff --git a/src/main/resources/messages_ja_JP.properties b/src/main/resources/messages_ja_JP.properties index 12f74ef5..d8afe788 100644 --- a/src/main/resources/messages_ja_JP.properties +++ b/src/main/resources/messages_ja_JP.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=ファイルが見つかりません database.fileNullOrEmpty=ファイルは null または空であってはなりません database.failedImportFile=ファイルのインポートに失敗 +database.notSupported=This function is not available for your database connection. session.expired=セッションが期限切れです。ページを更新してもう一度お試しください。 session.refreshPage=ページを更新 diff --git a/src/main/resources/messages_ko_KR.properties b/src/main/resources/messages_ko_KR.properties index 68fffd99..9011632b 100644 --- a/src/main/resources/messages_ko_KR.properties +++ b/src/main/resources/messages_ko_KR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=파일은 null이나 빈 상태로 될 수 없습니다 database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=세션이 만료되었습니다. 페이지를 새로 고침하고 다시 시도해 주세요. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_nl_NL.properties b/src/main/resources/messages_nl_NL.properties index 76f07b0d..bbbab1f0 100644 --- a/src/main/resources/messages_nl_NL.properties +++ b/src/main/resources/messages_nl_NL.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Bestand mag niet null of leeg zijn database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Je sessie is verlopen. Voer de pagina opnieuw in en probeer het opnieuw. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_no_NB.properties b/src/main/resources/messages_no_NB.properties index 945f8c66..1d3ae6a5 100644 --- a/src/main/resources/messages_no_NB.properties +++ b/src/main/resources/messages_no_NB.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Fil ikke funnet database.fileNullOrEmpty=Fil må ikke være tom eller null database.failedImportFile=Import av fil mislyktes +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_pl_PL.properties b/src/main/resources/messages_pl_PL.properties index 182bada5..c09217fa 100644 --- a/src/main/resources/messages_pl_PL.properties +++ b/src/main/resources/messages_pl_PL.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Plik nie znaleziony database.fileNullOrEmpty=Plik nie może być pusty database.failedImportFile=Nie udało się zaimportować pliku +database.notSupported=This function is not available for your database connection. session.expired=Twoja sesja wygasła. Odśwież stronę i spróbuj ponownie. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_pt_BR.properties b/src/main/resources/messages_pt_BR.properties index 8ab73fae..ce43bc96 100644 --- a/src/main/resources/messages_pt_BR.properties +++ b/src/main/resources/messages_pt_BR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Arquivo não encontrado database.fileNullOrEmpty=O arquivo não pode estar nulo ou vazio database.failedImportFile=Falha ao importar arquivo +database.notSupported=This function is not available for your database connection. session.expired=Sua sessão expirou. Por gentileza atualize a página e tente novamente. session.refreshPage=Atualizar Página diff --git a/src/main/resources/messages_pt_PT.properties b/src/main/resources/messages_pt_PT.properties index e37332af..2016842f 100644 --- a/src/main/resources/messages_pt_PT.properties +++ b/src/main/resources/messages_pt_PT.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=O ficheiro não pode ser nulo ou vazio database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=A sessão expirou. Por favor, recarregue a página e tente novamente. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_ro_RO.properties b/src/main/resources/messages_ro_RO.properties index 58cedad3..8de54ce8 100644 --- a/src/main/resources/messages_ro_RO.properties +++ b/src/main/resources/messages_ro_RO.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Fișierul nu a fost găsit database.fileNullOrEmpty=Fișierul nu trebuie să fie nul sau gol database.failedImportFile=Importul Fișierului a Eșuat +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_ru_RU.properties b/src/main/resources/messages_ru_RU.properties index 3d884d5c..5d8cb2bb 100644 --- a/src/main/resources/messages_ru_RU.properties +++ b/src/main/resources/messages_ru_RU.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=Файл не должен быть пустым или NULL database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Ваша сессия истекла. Пожалуйста, обновите страницу и попробуйте снова. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_sk_SK.properties b/src/main/resources/messages_sk_SK.properties index a2628f1f..217dbcf1 100644 --- a/src/main/resources/messages_sk_SK.properties +++ b/src/main/resources/messages_sk_SK.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_sr_LATN_RS.properties b/src/main/resources/messages_sr_LATN_RS.properties index 3a3be5e8..5c99d263 100644 --- a/src/main/resources/messages_sr_LATN_RS.properties +++ b/src/main/resources/messages_sr_LATN_RS.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_sv_SE.properties b/src/main/resources/messages_sv_SE.properties index 7cb064b4..705db2b0 100644 --- a/src/main/resources/messages_sv_SE.properties +++ b/src/main/resources/messages_sv_SE.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Filen hittades inte database.fileNullOrEmpty=Filen får inte vara null eller tom database.failedImportFile=Misslyckades med att importera fil +database.notSupported=This function is not available for your database connection. session.expired=Din session har löpt ut. Uppdatera sidan och försök igen. session.refreshPage=Uppdatera sida diff --git a/src/main/resources/messages_th_TH.properties b/src/main/resources/messages_th_TH.properties index 17c4903a..dded08a4 100644 --- a/src/main/resources/messages_th_TH.properties +++ b/src/main/resources/messages_th_TH.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=ไม่พบไฟล์ database.fileNullOrEmpty=ไฟล์ต้องไม่ว่างเปล่าหรือไม่มีข้อมูล database.failedImportFile=การนำเข้าไฟล์ล้มเหลว +database.notSupported=This function is not available for your database connection. session.expired=สถานะของคุณในระบบหมดอายุ กรุณารีเฟรชหน้าและลองใหม่อีกครั้ง session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_tr_TR.properties b/src/main/resources/messages_tr_TR.properties index 7c7ff309..bc977fa0 100644 --- a/src/main/resources/messages_tr_TR.properties +++ b/src/main/resources/messages_tr_TR.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Dosya bulunamadı database.fileNullOrEmpty=Dosya yok veya boş olmamalıdır database.failedImportFile=Dosya İçe Aktarılamadı +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_uk_UA.properties b/src/main/resources/messages_uk_UA.properties index 062a12e9..a88e78e8 100644 --- a/src/main/resources/messages_uk_UA.properties +++ b/src/main/resources/messages_uk_UA.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=File not Found database.fileNullOrEmpty=File must not be null or empty database.failedImportFile=Failed Import File +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_vi_VN.properties b/src/main/resources/messages_vi_VN.properties index daf87b81..f2921871 100644 --- a/src/main/resources/messages_vi_VN.properties +++ b/src/main/resources/messages_vi_VN.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=Không tìm thấy tệp database.fileNullOrEmpty=Tệp không được để trống hoặc rỗng database.failedImportFile=Không thể nhập tệp +database.notSupported=This function is not available for your database connection. session.expired=Your session has expired. Please refresh the page and try again. session.refreshPage=Refresh Page diff --git a/src/main/resources/messages_zh_CN.properties b/src/main/resources/messages_zh_CN.properties index 2b56e83c..4e2a1d34 100644 --- a/src/main/resources/messages_zh_CN.properties +++ b/src/main/resources/messages_zh_CN.properties @@ -249,6 +249,7 @@ database.backupCreated=Database backup successful database.fileNotFound=未找到文件 database.fileNullOrEmpty=文件不能为空 database.failedImportFile=导入文件失败 +database.notSupported=This function is not available for your database connection. session.expired=您的会话已过期。请刷新页面并重试。 session.refreshPage=刷新页面 diff --git a/src/main/resources/messages_zh_TW.properties b/src/main/resources/messages_zh_TW.properties index cef8d8cc..c8ccf131 100644 --- a/src/main/resources/messages_zh_TW.properties +++ b/src/main/resources/messages_zh_TW.properties @@ -249,6 +249,7 @@ database.backupCreated=資料庫備份成功 database.fileNotFound=找不到檔案 database.fileNullOrEmpty=檔案不得為空或空白 database.failedImportFile=匯入檔案失敗 +database.notSupported=This function is not available for your database connection. session.expired=您的工作階段已過期。請重新整理頁面並再試一次。 session.refreshPage=重新整理頁面 diff --git a/src/main/resources/templates/database.html b/src/main/resources/templates/database.html index dd36bac4..753a3a35 100644 --- a/src/main/resources/templates/database.html +++ b/src/main/resources/templates/database.html @@ -18,7 +18,7 @@

-
+
@@ -45,7 +45,7 @@ Create Backup File
- +