Commit Graph
61 Commits
Author SHA1 Message Date
Kenneth Skovhede 5b0e22843c Fix detached tray-icon
This fixes a logic issue that prevents a detached tray-icon from obtaining a connection to a non-hosted server.
2024-08-20 12:15:18 +02:00
Kenneth Skovhede f7a804aec7 Removed unused files and methods 2024-08-13 22:37:36 +02:00
Kenneth Skovhede e980d7daee This adds back the missing ProposedSchedule to the server state.
This handles the missing information part in #5436
2024-08-13 22:24:15 +02:00
Kenneth Skovhede dfbcff5d47 Fixed error messages for requests with no response 2024-07-18 21:29:36 +02:00
Kenneth Skovhede c9f8e5786c Minor fixes 2024-06-20 22:22:49 +02:00
Kenneth Skovhede a47af06bb7 Added throttle for request retries on failures 2024-06-20 14:22:49 +02:00
Kenneth Skovhede edc0fb5e4b Fixed re-login for tray-icon 2024-06-20 06:57:46 +02:00
Kenneth Skovhede 3f29642f6c Implemented JWT tokens.
Added auth requirement on all endpoints.
Added SignIn-, Access- and Refresh-Tokens based on JWT.
Upgraded stored password to be based on PBKDF2.
Added default password assignment.
Updated logic to support auth-header and re-sign-in for tray-icon and web-ui.
2024-06-19 13:54:10 +02:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Thomas Suckow 898193fcef For now, just interrupt since its better than NOP. 2021-04-03 20:54:47 -07:00
Kenneth Hsu 69d153a121 Mark fields as readonly but allow for deserializer to set them.
This will prevent accidental reassignment of these fields.  Without the
JsonProperty attribute, we would encounter an issue starting the server
when a password was set on the web UI.
2020-01-26 09:49:10 -08:00
Kenneth Hsu 1bbcc09c86 Remove readonly keyword from fields that are set by deserializer.
Making these readonly resulted in startup issues when the password was
set for the UI.

See forum discussion here:

https://forum.duplicati.com/t/after-last-update-duplicati-doesnt-work-anymore/8369
2019-11-04 19:11:18 -08:00
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Skovhede 81ac1bf3a3 Added guards to prevent a null-error when attempting to connect to a password protected server without a password. 2019-09-20 12:49:28 +02:00
Kenneth Hsu d26d538b22 Revert "Remove unused StopTask method."
This reverts commit d6688936ed.
2019-05-06 20:13:04 -07:00
Kenneth Hsu e3d04dd5f1 Revert "Remove unused AbortTask method."
This reverts commit 523b95abf9.
2019-05-06 20:13:03 -07:00
Kenneth Hsu 8f19322657 Revert "Remove unused RunBackup method."
This reverts commit 3dd4132af1.
2019-05-06 20:13:03 -07:00
Kenneth Hsu bc1ac322f8 Revert "Remove unused DismissNotification method."
This reverts commit 9ab8058354.
2019-05-06 20:13:01 -07:00
Kenneth Hsu 9ab8058354 Remove unused DismissNotification method. 2019-04-27 16:39:43 -07:00
Kenneth Hsu 3dd4132af1 Remove unused RunBackup method. 2019-04-27 16:38:27 -07:00
Kenneth Hsu 523b95abf9 Remove unused AbortTask method. 2019-04-27 16:37:20 -07:00
Kenneth Hsu d6688936ed Remove unused StopTask method. 2019-04-27 16:37:10 -07:00
Kenneth Hsu 5edc9f2d13 Remove unused BackkgroundRequest constructor. 2019-04-27 16:35:42 -07:00
verhoek b2cc18426c Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek bc053df294 Moved basic IO helper functions to Library.IO. 2018-10-27 12:17:07 +02:00
Kenneth Hsu d4d1945faf Use utility method to append trailing slash.
This removes some duplicated code.
2018-09-22 10:19:45 -07:00
Kenneth Skovhede 4762a35ae3 Added option to disable automatic tray-icon login. 2018-06-15 14:35:35 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Skovhede ee64517f7d Removed calls to Console.WriteLine as we may run somewhere without a console. 2018-05-15 11:29:08 +02:00
Kenneth Hsu c00c6fd19b Make fields containing lock objects readonly.
If one of these fields is accidentally reassigned, it's possible for
threads to be oblivious to an existing lock.  By making the fields
readonly, we will be notified at compile-time if we inadvertently
redefine one of these fields.
2018-03-17 19:59:23 -07:00
Max 0380f6d453 fixes password change in hosted tray 2018-02-25 13:54:20 +01:00
Kenneth SkovhedeandGitHub 36aadc4ad1 Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede dc5a7e1239 Minor updates to the tray-readpassword patch 2017-06-29 10:22:41 +02:00
Max 21a09a238b refactor 2017-06-28 23:45:56 +02:00
Max e8e6b4b133 tray http options fix 2017-06-28 21:39:45 +02:00
Max ca84a9462b added console support on windows 2017-06-22 15:10:31 +02:00
Max a9d7507597 tray icon header fixes 2017-06-17 18:46:38 +02:00
Max 319288ef9f upstream 2017-06-17 17:19:34 +02:00
Max 32300553cd implemented custom header for trayicon 2017-06-17 16:57:39 +02:00
Kenneth Skovhede 0ed39682eb Rewrote the login calls to use POST instead of GET.
This fixes #2511
2017-05-31 11:24:56 +02:00
Max c300c1fb47 added ability to survive password change or on/off 2017-05-03 00:03:16 +02:00
Max 91f4f79559 added posibility to read server password from database 2017-05-02 21:14:28 +02:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede d0711011a2 Rewrote all WebRequest code to use AsyncHttpRequest, and normalized usage such that WebResponse objects are always correctly disposed. 2016-04-16 11:12:28 +02:00
Kenneth Skovhede 1f35824317 Converted to REST based API, with a wrapper layer for control.cgi so the current UI still works. 2015-07-30 14:31:27 +02:00
Kenneth Skovhede 7e0f9860b5 Added protection against XSRF attacks 2015-02-26 23:21:22 +01:00