Commit Graph
776 Commits
Author SHA1 Message Date
Kenneth Skovhede fc478146f3 Update ServerUtil probing
This PR updates the probing logic to not try the database if a password is supplied on the commandline.

It also fixes a crash that could happen at an unwanted place, if the user does not have write access to the supplied data folder. After this, the application will still crash due to not having  a place to write information, but it does not crash in the preloader logic. This also prevents creating the folder while probing for the database.

This PR also fixes a case where the database could become encrypted, if the ServerUtil was providing an encryption key to an unencrypted database. Before this fix, the database would be encrypted with the key provided to ServerUtil, which would most likely cause the Server/TrayIcon to fail starting and perhaps crash.

This fixes #6377
2025-07-10 21:03:16 +02:00
Kenneth Skovhede 939204e9dc Removed warning 2025-07-09 10:10:05 +02:00
Carl Johnsen 59582cdb78 Added additional test cases for argument parsing in the remote synchronization tests 2025-07-08 08:29:27 +02:00
Carl Johnsen 4adfb4681d Removed restore argument to make the calls to restore consistent 2025-07-08 07:54:03 +02:00
Carl Johnsen 0475d896cc Reduce test data size in remote synchronization tool test to speed it up 2025-07-08 07:52:22 +02:00
Carl Johnsen bb2847eb55 Specified that the ToolTests relates to the remote synchronization tool 2025-07-08 07:51:43 +02:00
Kenneth Skovhede 285617245b Fixed test for BackupRead 2025-07-04 16:31:03 +02:00
Kenneth Skovhede 148d88ee17 Disable features if shim fails to load 2025-07-04 16:18:05 +02:00
Kenneth Skovhede 6502017c57 Merge remote-tracking branch 'origin/master' into feature/vanara-vss-backup 2025-07-03 17:09:30 +02:00
Kenneth Skovhede fe2ecfec4a Added test for BackupRead if supported 2025-07-03 17:04:22 +02:00
Kenneth SkovhedeandGitHub 5ff613b5da Merge pull request #6360 from carljohnsen/performance/mssqlite-async
Performance/Asynchronous database backend
2025-07-03 11:07:26 +02:00
Kenneth Skovhede 8ef2e85638 Don't set option if not supported 2025-07-01 17:05:20 +02:00
Kenneth Skovhede ccbf3a1552 Default to disable snapshots when testing 2025-07-01 11:43:38 +02:00
Carl Johnsen bb87e94ffa Post merge master fixes 2025-06-24 14:38:58 +02:00
Carl Johnsen e55c36081f Merge branch 'master' into performance/mssqlite-async 2025-06-24 14:24:09 +02:00
Kenneth SkovhedeandGitHub 86acc32c1c Merge pull request #6361 from duplicati/feature/handle-transitive-folders
Transitive virtual folders
2025-06-24 07:41:51 +02:00
Kenneth Skovhede b7a0053e5b Rewrote function to return minimal unique prefixes instead 2025-06-23 17:40:28 +02:00
Kenneth Skovhede 6912d89b99 Remove fixed index files from output
This removes index files that were succesfully repaired from the output, so the now-missing files are not reported as failures.

This fixes #6336
2025-06-20 16:40:21 +02:00
Carl Johnsen b9fa8bd0bb Previous version was using 'null' as a transaction, which implies a commit after each query. 2025-06-19 13:20:01 +02:00
Carl Johnsen 089dc8c53d Assert.Throws did not like async lambda functions 2025-06-19 13:19:36 +02:00
Carl Johnsen 26c48c7e62 Post merge with master fixes 2025-06-19 12:24:22 +02:00
Carl Johnsen f6ac30e831 Merge remote-tracking branch 'upstream/master' into performance/mssqlite-async 2025-06-19 12:17:30 +02:00
Carl Johnsen 2412800c0c Removed the sqlite page cache option. It should be set through the environment variable, or some other way of providing a custom database configurotion 2025-06-19 11:41:39 +02:00
Carl Johnsen 9b0d89363b Removed whitespace 2025-06-19 11:40:23 +02:00
Carl Johnsen 78d649f5a3 All of the non-internal-library methods calling the database functions forwards CancellationToken.None 2025-06-19 11:00:24 +02:00
Kenneth SkovhedeandGitHub dbc0e06367 Merge pull request #6353 from duplicati/feature/handle-empty-metadata
Added a check and repair for empty metadata
2025-06-18 09:57:23 +02:00
Kenneth Skovhede 2c5c01160c Added a check and repair for empty metadata
This PR adds a check for empty metadatasets (length = 0) and replaces such sets with a default metadataset.

This fixes #6350
2025-06-16 16:35:07 +02:00
Kenneth Skovhede 3eb8bb3cdc Add test for replacing missing metadata 2025-06-16 15:38:56 +02:00
Kenneth Skovhede 8fca01f64f Updated NUnit
This closes #4939
2025-06-13 11:48:24 +02:00
Kenneth SkovhedeandGitHub d74778bbf5 Merge branch 'master' into feature/booleans-should-be-false-by-default 2025-06-13 08:58:12 +02:00
Kenneth Skovhede 7a560c4ae2 Fixed tests and a left-over message 2025-06-13 08:41:32 +02:00
Kenneth SkovhedeandGitHub d432006207 Merge branch 'master' into feature/http-client-timeout-revision 2025-06-12 22:27:12 +02:00
Kenneth SkovhedeandGitHub fa2f7ada79 Merge pull request #6330 from duplicati/codex/increase-test-coverage-in-duplicati.library.main
Increase test coverage for ControllerMultiLogTarget
2025-06-12 22:21:00 +02:00
Kenneth SkovhedeandGitHub 524450092b Merge pull request #6329 from duplicati/codex/find-and-fix-bug
Fix block initialization bug in IssueTests
2025-06-12 22:20:39 +02:00
Marcelo C. 614f047dbb Sets infinite timeout for HTTP clients
Ensures that long-running HTTP requests, such as downloads and uploads, do not timeout prematurely.

This change configures specific HttpClient instances with an infinite timeout to accommodate operations that may take an extended period. The default 100s timeout is retained for some operations like registration, where a long delay may indicate a problem.
2025-06-12 10:33:13 -03:00
Carl Johnsen 3d11a05400 Added .ConfigureAwait(false) to all of the await statements 2025-06-12 08:34:29 +02:00
Kenneth Skovhede 6f0060ec81 Add tests for ControllerMultiLogTarget 2025-06-11 16:34:57 +02:00
Kenneth Skovhede ce79ace904 Use Span.Fill to init test blocks 2025-06-11 16:34:22 +02:00
Carl Johnsen 90721af98d Updated Server and ImportExportTests to use the async database backend 2025-06-11 08:58:32 +02:00
Carl Johnsen 94420be76d Removed whitespace 2025-06-11 08:58:07 +02:00
Carl Johnsen e5fe48e501 Merge branch 'master' into performance/mssqlite-async 2025-06-11 06:23:54 +02:00
Kenneth Skovhede 38164d15cc Improve secret matching
This PR extends the allowed characters in names for secret keys to also include `-` and `_`, allowing keys like `$my-secret-key` which would previously not be matched.

This PR also adds detection of partial matches, so keys that start with the prefix, but do not match are reported as a warning. This could happen if the input key is `$my:secret` because the `:` is not matched. To prevent logging sensitive information, only the number of partial matches is reported, not the values.

It is possible that the user intended for such a value to be a matched key, but it is also possible that this value was meant to be verbatim. We can consider if this should stop the process instead of just emitting a warning, as the user should fix the issue in either case.

The fix for this would be to use the secret provider pattern and change to something that is not partially matched.
2025-06-10 09:40:35 +02:00
Carl Johnsen 8bf1b8da42 Removed whitespace 2025-06-04 10:31:59 +02:00
Carl Johnsen 086a0c7914 Made Issue5066 test legacy restore as well 2025-06-04 10:31:53 +02:00
Kenneth Skovhede 76a8d92c3f Fixed test 2025-06-03 20:37:23 +02:00
Kenneth Skovhede bc9c9ac56b Fixed tests 2025-06-03 10:34:38 +02:00
Carl Johnsen 239d7370cd Removed whitespace 2025-06-02 11:50:44 +02:00
Carl Johnsen caa3c13dbe Post master merge fixes 2025-06-02 11:50:35 +02:00
Carl Johnsen bd493638af Merge branch 'master' into performance/mssqlite-async 2025-06-02 10:39:33 +02:00
Kenneth Skovhede f8e6fff0e9 Add unit tests for CLIDatabaseLocator and Utility 2025-06-02 08:48:00 +02:00