Commit Graph
8782 Commits
Author SHA1 Message Date
Tyler Gill 5646e3de9d Add a test for the DNSName property to the BackendTester and report the DNS names it returns. 2018-03-20 15:26:17 -06:00
Tyler Gill c57d7e75cd Add helpId parameter to UserInformationExceptions in MicrosoftGraphBackends. 2018-03-20 15:09:06 -06:00
Tyler Gill 94341a640d Implement DNSName method in MicrosoftGraphBackend base class. 2018-03-20 15:08:30 -06:00
Tyler Gill f4c6100873 Add Duplicati + version as the user agent in the MS Graph backends. 2018-03-20 15:07:46 -06:00
Tyler Gill 4578a5bd91 Merge branch 'master' of https://github.com/duplicati/duplicati into feature/ms-graph-backends 2018-03-20 14:24:48 -06:00
Tyler Gill a98c967f70 Add new backends for OneDrive+OneDrive for Business, SharePoint, and Microsoft Groups based on the Microsoft Graph API.
These backends are implemented via the common base class, MicrosoftGraphBackend, with only a few minor tweaks (different id parameters, protocol keys, descriptions, etc.)
All three backends support streaming, quota retrieval, and rename.
2018-03-20 14:18:49 -06:00
Tyler Gill c542d65997 Update service agreement and privacy policy link for OneDrive backend. 2018-03-20 14:01:28 -06:00
Tyler Gill 20fc793dee Add OAuthHttpMessageHandler helper class to OAuthHelper library.
This class implements the abstract HttpMessageHandler class (mostly via the default HttpClientHandler implementation).
This abstract class is used by System.Net.Http.HttpClient as the underlying HTTP mechanism, and in this particular case is used to automatically add an authorization header to each request.
It also provides a method for marking a request as one that should not be authenticated.
2018-03-20 14:00:52 -06:00
Tyler Gill f9a8b30b2f Update JSONWebHelper.PostAndGetJSONData to remove parameters that aren't actually being used (setup and setupreq).
These parameters weren't being used in the method body, or being passed in by any callers (it looks like a copy / paste error when a previous method was converted into this one)
These are replaced with a new optional parameter (method) which allows the caller to request a custom HTTP method to be used.
2018-03-20 13:56:05 -06:00
Tyler Gill 4e4b9a56d6 Adds a test to the BackendTester for quota-enabled backends.
This test simply loads the quota information and displays it (or displays an error if the backend was unable to get it)
2018-03-20 13:53:32 -06:00
Tyler Gill dba0b3772e Add a test to BackendTester for backends which support renaming.
This is done by renaming the second file (or first if only one file is being created) and updating the in memory set of expected files,
while keeping track of the original info so it can be reported if it is still present (e.g., if the rename operated as a copy instead).
2018-03-20 13:50:06 -06:00
Tyler Gill cff8f172fc Add support for 'trim-filename-spaces' flag to BackendTester.
This flag ensures that any randomly generated file names don't have leading or trailing whitespace, which some backends might not support.
2018-03-20 13:48:21 -06:00
Tyler Gill 00c1a296da BackendTester should explicitly call Test() when performing the initial check to see if the main folder exists.
Without this, the auto create folders flag was broken for backends which lazily enumerate List() (as they instead throw after the try block is ended)
Calling Test() dierctly also better matches the IBackend interface contract.
2018-03-20 13:46:49 -06:00
Tyler Gill 2b4fb9a65f SizeParser can use OrdinalIgnoreCase instead of ToLower(). 2018-03-20 13:44:15 -06:00
Tyler Gill 73b6fe2a01 Add extension methods to the general Utility class for emulating the await keyword in non-async code.
Using GetAwaiter().GetResult() is similar to using Task.Result, but rethrows the original exception rather than wrapping it in an (unnecessary) AggregateException.
2018-03-20 13:41:57 -06:00
Kenneth SkovhedeandGitHub 3ec2b78828 Merge pull request #3086 from warwickmm/feature/disable_on_battery
Add option to disable backup when on battery power
2018-03-20 09:19:01 +01:00
Kenneth SkovhedeandGitHub 6545b5cfa4 Merge pull request #3109 from warwickmm/fix_xml_ampersand
Fix encoding of ampersand in XML documentation
2018-03-20 09:01:48 +01:00
Kenneth SkovhedeandGitHub f804eaa7ab Merge pull request #3108 from warwickmm/readonly_lock_objects
Make fields containing lock objects readonly
2018-03-20 09:01:22 +01: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
Kenneth Hsu 10e127b2a9 Properly encode ampersand in XML content. 2018-03-17 13:56:19 -07:00
Kenneth Hsu 85214aaf9a Warn that option is ignored by manual or command-line backups. 2018-03-16 19:32:50 -07:00
Kenneth Hsu e2aa98fbca Add option to disable backup when on battery power.
This addresses issue #2666.
2018-03-16 19:32:50 -07:00
Kenneth Skovhede a980ed93a6 Implemented support for setting low IO priority on Windows, Linux, and MacOS 2018-03-16 23:25:06 +01:00
Kenneth Skovhede 20e2dcafb3 Moved the process control stuff into another class, so it can be disposed easily and contain its own state 2018-03-16 10:33:26 +01:00
Kenneth Skovhede 883922e2f3 Version bump to v2.0.3.2-2.0.3.2_canary_2018-03-16
You can download this build from:

Binaries: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip

Signature file: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip.sig

ASCII signature file: https://updates.duplicati.com/canary/duplicati-2.0.3.2_canary_2018-03-16.zip.sig.asc

MD5: aaced24431484aad1675b010e93b3ed8

SHA1: 0f81c26c8974f7d9e2ee4d104dcbd2aff44f9a96

SHA256: 6c9357f801a9570cee7bb04f19902bbb2cc8cc7a91ed3c7547e6bf6d0ce134c8
v2.0.3.2-2.0.3.2_canary_2018-03-16
2018-03-16 09:59:44 +01:00
Kenneth Skovhede f247799a4b Merge branch 'release/2.0.3.1_experimental'
# Conflicts:
#	Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
#	Updates/build_version.txt
#	build-release.sh
#	changelog.txt
2018-03-16 09:27:41 +01:00
Kenneth Skovhede 4cf87c9bbd Version bump to v2.0.3.1-2.0.3.1_experimental_2018-03-16
You can download this build from:

Binaries: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip

Signature file: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip.sig

ASCII signature file: https://updates.duplicati.com/experimental/duplicati-2.0.3.1_experimental_2018-03-16.zip.sig.asc

MD5: fe2ddbf6031c62b64b3cfae3fac22193

SHA1: fe7215fe60ce72fedbc60a5efb10a4842a969c5d

SHA256: 1c27ef74e4ce7a47844d7f7d1cc645a46625590d9271bf60c638b5df8b678604
v2.0.3.1-2.0.3.1_experimental_2018-03-16
2018-03-16 09:15:59 +01:00
Kenneth SkovhedeandGitHub 99479344f7 Merge pull request #3095 from Pectojin/notification_repair_button
added repair button to the 'please repair' notification
2018-03-16 08:45:13 +01:00
Kenneth SkovhedeandGitHub 4f5d09f93d Merge pull request #3096 from Pectojin/system_info_add_username_and_startedby_variables
added 'UserName' and 'StartedBy' variables to the system info page
2018-03-16 08:41:55 +01:00
Kenneth SkovhedeandGitHub 9f63caae4e Merge pull request #3092 from piegamesde/master
Made python script run in parallel
2018-03-16 08:40:51 +01:00
Kenneth Skovhede e124329f1e Merge branch 'feature/improved-logging' 2018-03-16 08:38:14 +01:00
Kenneth Skovhede 3ec6b88ac8 Added a repeating log-scope that writes out a message, if no activity produced a log message for 10 seconds 2018-03-15 23:30:24 +01:00
Kenneth Skovhede 04d5a7fcb2 Removed output spam from a unittest 2018-03-15 12:29:53 +01:00
Kenneth Skovhede 33fa74508f Prepared version number for experimental release 2018-03-15 09:21:06 +01:00
MaxandKenneth Skovhede e5d9d66fa3 fixes password change in hosted tray 2018-03-15 09:17:09 +01:00
Kenneth Skovhede 2d431a91d0 Cleaned the output from the forum post upload 2018-03-15 09:16:45 +01:00
Daniel RadünzandKenneth Skovhede 46b8ae0972 Fix custom retention check to better support "U" parameter
Check for finding first colon failed when using the rule "U:1D" due to the first colon being the second character and not the third
2018-03-15 09:16:30 +01:00
Daniel RadünzandKenneth Skovhede 5fc8c4f0de Fixes issue #3075
IE 11 and lower doesn't support ECMAScript 2015 Default Parameters
2018-03-15 09:16:23 +01:00
Kenneth Skovhede c6550ed1c4 Added automatic discourse forum topic after build 2018-03-15 09:16:12 +01:00
Kenneth Skovhede 698de9aeb9 Remove the output data after the build of the Docker images 2018-03-15 09:14:44 +01:00
Kenneth Skovhede 83fc40a87b Rebuilt the style.css file 2018-03-15 09:13:47 +01:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Rune Henriksen f414b2fdf2 added 'UserName' and 'StartedBy' variables to the system info page to help troubleshooting 2018-03-09 21:24:57 +01:00
Rune Henriksen 5cff5329f4 added repair button to the 'please repair' notification and added helper method in the notification area directives class to call the db repair 2018-03-09 20:17:42 +01:00
Piegames 77a46b34c0 Made python script run in parallel
This made the process a lot faster for me 15h -> 7h.
2018-03-08 17:55:34 +01:00
Kenneth SkovhedeandGitHub 96cd4dd725 Merge pull request #3087 from warwickmm/use_nameof_operator
Use nameof operator when constructing ArgumentNullException
2018-03-08 11:14:49 +01:00
Kenneth SkovhedeandGitHub 0e9eb4a452 Merge pull request #3088 from warwickmm/bugfix/remove_extra_tag
Remove superfluous closing tag in XML documentation.
2018-03-08 11:14:29 +01:00
Kenneth SkovhedeandGitHub 1675ea2375 Merge pull request #3089 from warwickmm/bugfix/xml_cref
Fix code references in XML documentation
2018-03-08 11:14:14 +01:00
Kenneth SkovhedeandGitHub a97d4134d4 Merge pull request #3090 from warwickmm/bugfix/xml_param
Fix XML parameter documentation
2018-03-08 11:13:44 +01:00
Kenneth Hsu d7b393ed98 Add missing XML parameter documentation. 2018-03-07 19:14:57 -08:00