Commit Graph
198 Commits
Author SHA1 Message Date
Kenneth Skovhede 11a27042bc Merge remote-tracking branch 'origin/master' into feature/alternate-source-provider 2025-02-26 19:25:46 +01:00
Kenneth SkovhedeandGitHub 35bd853f7a Merge pull request #5974 from duplicati/feature/report-listen-interface-on-start
Added listen interface to startup message
2025-02-24 13:07:34 +01:00
Kenneth Skovhede def7327b21 Fixed CORS preflight
This fixes the CORS preflight by allowing the preflight requests to be sent without being authenticated.
Without this fix all CORS requests would fail due to the access token not being included in preflight requests.
2025-02-20 10:51:10 +01:00
Kenneth Skovhede cf5b4bb24d Added support for Wmic based Windows VSS snapshots.
Refactored code a bit to be easier to understand.
2025-02-19 14:00:14 +01:00
Kenneth Skovhede ca1c765b61 Fixed developer setup for ngclient on Windows.
This fixes two issues that prevented the debug loader to auto-fetch and set up ngclient on Windows when running debug builds.
2025-02-18 11:04:25 +01:00
Kenneth Skovhede 9501470d0d Added listen interface to startup message 2025-02-14 11:28:22 +01:00
Kenneth Skovhede 8c935a7344 This creates a new ISourceProvider interface for describing a data source.
With this interface it is possible to wrap the current support for snapshots and USN and simplify the enumeration.

This makes a number of assumptions into fields such as `IsMetaEntry` and `IsRootEntry` that removes code that was checking for various properties.

This first commit has support for VSS and USN as well as "naked" files, keeping feature parity.

There is also an experimental support for loading a backend-as-a-source. The support for this is currently limited as the backends need to be extended to support a folder concept.
2025-02-09 16:14:22 +01:00
Kenneth SkovhedeandGitHub 28e3fa1063 Merge pull request #5914 from duplicati/feature/prevent-windows-subfolder-storage
Improve data folder assignment
2025-01-31 14:52:45 +01:00
Kenneth Skovhede fac866a5cd Merge remote-tracking branch 'origin/master' into feature/add-support-for-cors 2025-01-30 08:39:15 +01:00
Kenneth Skovhede fac12ba772 Further consolidated the data folder.
Added support for `--portable-mode` and `--server-datafolder` for the CLI, ServerUtil, and Agent.

Fixed a few places where file reads were not cached properly.

Moved some responsibilities of UpdaterManager into DataFolderManager.

This now supports storing `machineid.txt` and `installation.txt` inside the path pointed to by `--server-datafolder` or alternatively with `--portable-mode`.

It is possible that some fringe backwards compatibility is lost with this update.

Fixed an issue with AutoUpdater crashing on check/download.

This fixes #5902
2025-01-28 13:01:35 +01:00
Kenneth Skovhede 27f0bb4ea0 Unified code to find the data folder.
The `machineid.txt` and `installation.txt` files are now default located in same folder where the database is default located.
2025-01-27 22:51:45 +01:00
Kenneth Skovhede 97d62163c5 Renamed methods for database path to better distinguish what they do 2025-01-27 11:46:24 +01:00
Kenneth SkovhedeandGitHub b8e46a202d This fixes the attributes of special folders not emitted to the UI (#5906) 2025-01-25 12:39:22 +01:00
Kenneth SkovhedeandGitHub 997891525a Updated license-updater to update csproj files (#5898)
* Updated license-updater to update csproj files

* License updates
2025-01-22 21:04:19 +01:00
Kenneth Skovhede 04205d5084 Added support for CORS 2025-01-18 11:03:52 +01:00
marceloduplicatiandGitHub 2836e904fd Fix encoding on export backup configuration filename (#5888)
Fix for issue:
https://github.com/duplicati/duplicati/issues/5884
2025-01-17 15:14:01 +01:00
Kenneth SkovhedeandGitHub 6bbd64a655 Fixed nullability warnings in Utility.cs (#5861)
* Fixed nullability warnings in `Utility.cs`

* Fixed a number of nullability issues and warnings

* More nullable fixes

* Fixed the overwrite issue

* Fixed additional nullability issues

* Removed additional nullability issues

* More nullability fixes and added some xmldoc

* Added more xmldocs and removed an unused argument

* Removed more warnings
2025-01-14 14:03:48 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth SkovhedeandGitHub 7f40ec46db Removed the captcha. (#5816)
This commit removes the Captcha support, and replaces with a copy-paste-able safeguard in the UI.
2024-12-28 20:03:52 +01:00
Kenneth SkovhedeandGitHub ff1b2b7990 Simplified task control (#5753)
* Simplified task control by having all logic in a single class and using async control mechanism
* Fixed the tests
* Made the marking of a backup partial explicitly communicated if the enumeration process is stopped.
* Added support for pausing active transfers
* Introduced transfer token to abort operations.
* Updated the way LiveControl is emitting events.
* Retains the paused state of the server across reboots, this fixes #5760.
* Reworked the way throttle speeds are propagated through LiveControls.
* Added option to pause transfers in the UI.
* Removed throttle settings from the LiveControls class so it is exclusively handled by the ApplicationSettings.
* Removed `thread-priority` as it does not work at all when tasks are used.
* Fixed the stop dialog and API to only support stop and abort.
* Removed unused variables
2024-12-18 08:27:59 +01:00
Kenneth SkovhedeandGitHub 3a4fd11926 Merge pull request #5783 from duplicati/feature/reduce-logspam
Added a filter to not log application exceptions.
2024-12-18 08:25:12 +01:00
Kenneth Skovhede 22d7426e07 Fixed bugreport download.
This fixes #5758
2024-12-17 21:38:18 +01:00
Kenneth Skovhede 7436d1271e Added a filter to not log application exceptions.
Unknown exceptions are still logged, so we can collect reports of these and eventually wrap them in user information exceptions.
2024-12-17 14:53:00 +01:00
Kenneth Skovhede a2a974098e Disabled probing of openid config 2024-12-16 22:47:04 +01:00
Kenneth Skovhede c9665da91b Reworked the tokens to only support emitting a single token per server startup 2024-12-12 11:05:09 +01:00
Kenneth Skovhede 7d4f9ffab3 Implemented a forever-token feature 2024-12-12 08:59:59 +01:00
Kenneth SkovhedeandGitHub 58a5fc57f4 Implemented support for emitting intermediate certificates from pfx (#5739)
* Implemented support for emitting intermediate certificates from pfx files

* Added certificate check to crash earlier

* Fixed loading certificate on Windows
2024-12-05 10:34:10 +01:00
Kenneth Skovhede 6fb8a05318 Fixed exported type for filters 2024-11-26 11:29:13 +01:00
Kenneth Skovhede 42c4e50482 Fixed issues with update detection.
This fixes a case where the update checker keeps an old reference to the previous updated version, despite running a newer version.

It also removes some use of `Assembly.GetExecutingAssembly().GetName().Version` with the information from `UpdaterManager.SelfVersion.Version` as that should follow the update info.

This fixes #5698
This fixes #5252
2024-11-25 17:27:50 +01:00
Kenneth Skovhede 0a5baa127c Merge remote-tracking branch 'origin/master' into feature/fix-dst-changing-scheduled-time 2024-11-25 13:05:28 +01:00
Kenneth Skovhede 97c8c8ac80 Made the status call available when running agent mode, and hiding the buttons. 2024-11-14 22:24:10 +01:00
Kenneth Skovhede 1b07fadd88 Moved systemInfo into a service with cache so it can preload 2024-11-08 10:07:03 +01:00
Kenneth Skovhede e225ffd25c Fixed a crash when showing log data 2024-11-07 15:43:31 +01:00
Kenneth SkovhedeandGitHub b0a34387f6 Merge pull request #5598 from duplicati/feature/add-secret-provider
Feature/add secret provider
2024-11-06 11:50:58 +01:00
Kenneth Skovhede d8ed4ebd8b Fixed using the interface instead of impl 2024-11-05 22:34:34 +01:00
Kenneth Skovhede aed53525de Connect automatically after register 2024-11-05 22:29:04 +01:00
Kenneth Skovhede 74bb22e022 Implemented support for keeping time-of-day stable across daylight savings time changes.
This fixes #1364
2024-11-05 21:26:30 +01:00
Kenneth Skovhede a72bf27aa3 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-11-05 11:48:30 +01:00
Kenneth Skovhede 8250a5befa Refactored SecretProviderHelper to replace in Uri instances instead of raw string.
This fixes some issues with URL encoding/decoding.
Due to the legacy class `Duplicati.Library.Utility.Uri` there are two replacements done.
2024-11-04 15:57:56 +01:00
Kenneth Skovhede e37f0cd741 Exposed secret providers as modules 2024-11-04 14:59:35 +01:00
Kenneth Skovhede e9a516e717 Merge branch 'feature/add-secret-provider' of github.com:duplicati/duplicati into feature/add-secret-provider 2024-11-04 13:21:35 +01:00
Kenneth Skovhede d98186e1eb Implemented secret provider on the remoteoperation and webmodules calls 2024-11-04 13:20:23 +01:00
Kenneth Skovhede c99e819d70 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-11-01 08:49:52 +01:00
Kenneth SkovhedeandGitHub 569ffabc76 Merge branch 'master' into feature/improved-ipv6-support 2024-11-01 08:31:49 +01:00
Kenneth SkovhedeandGitHub 7631b921b4 Merge pull request #5608 from duplicati/feature/support-ec-certificates
Feature/support ec certificates
2024-10-31 09:56:41 +01:00
Kenneth Skovhede df449f9cae Added better error reporting for the test/cerate operations 2024-10-30 15:26:25 +01:00
Kenneth Skovhede 405b2832ee Added the localhost listen variant. 2024-10-29 14:44:43 +01:00
Kenneth Skovhede 56816abed8 Reverted to not storing the certificate as a file, since the x509Certificate loader was the broken part, not Kestrel. 2024-10-29 13:55:12 +01:00
Kenneth Skovhede 7841a6026f Implemented API endpoint to update the SSL certificate via the API 2024-10-29 12:03:10 +01:00
Kenneth Skovhede 4783050d53 Simplified logic by having an option to disable https.
Simplified checks for https by having a single property that unifies the logic.
2024-10-29 11:15:06 +01:00