Commit Graph
1158 Commits
Author SHA1 Message Date
Kenneth Skovhede e124329f1e Merge branch 'feature/improved-logging' 2018-03-16 08:38:14 +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
Kenneth Hsu 1f8b542604 Use nameof operator when constructing ArgumentNullException.
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Kenneth Skovhede bd863016fa Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
2018-02-26 11:37:10 +01:00
Rune Henriksen fc77b476fc changed from NYI to null returns. Added check to skip DNS check if no DNSName is provided 2018-02-21 22:38:01 +01:00
Rune Henriksen ecc586c0f8 added code to attempt to resolve DNS issues on connection failure and implemented DNSName method in WebDav backend handler 2018-02-18 01:30:05 +01:00
Rune HenriksenandGitHub 7a58851224 Added DNSName method to comply with interface
Fixed weird linebreak issues and added DNSName method to comply with Ibackend interface
2018-02-18 00:21:48 +01:00
Rune Henriksen 00292953c3 added DNSName getter on Backend interface and added NotImplementedException methods on each backend class 2018-02-18 00:18:44 +01:00
Kenneth Skovhede d8bd9abe15 Fixed a problem with the box.com backend not being able to find files it already uploaded.
This fixes #2557
This might also fix #2349
2018-02-08 21:45:36 +01:00
osmogar 8f1f972f09 A malfunction OneDrive account can retrieve a inconsistent list of files when we fetches a partial list of objects through the onedrive rest api. Retries the download of the file list until all files are listed 2018-01-26 14:22:32 +01:00
Kenneth Skovhede 9aa2310025 Merge branch 'master' of github.com:duplicati/duplicati 2018-01-20 15:03:25 +01:00
Kenneth SkovhedeandGitHub b417bfbc52 Merge pull request #2957 from wjansenw/rclone
Adding Rclone as backend
2018-01-20 13:06:26 +01:00
Kenneth Skovhede 03b51b77af Updated the Google Drive backend to support TeamDrives. 2018-01-20 11:04:54 +01:00
wjan e46f412bef corrects Newtonsoft reference 2018-01-19 16:15:57 +01:00
wjan 687a6b8887 Merge branch 'master' of https://github.com/duplicati/duplicati into rclone 2018-01-19 08:21:05 +01:00
wjan cd43e4890e adds exception in case of other errors from rclone backend 2018-01-18 21:40:05 +01:00
wjan 90c67ddb0b removes oauth helper from the references 2018-01-18 21:27:09 +01:00
wjan 4b076d9e0e read output from rclone command async + corrects parameters in gui 2018-01-18 20:42:50 +01:00
inat3kandGitHub 9e632a71b7 Fix for #2970
Fix for Test Connection to WebDAV Server
2018-01-18 17:55:06 +01:00
Kenneth Skovhede c54ef9c376 Adds a UserAgent header to OD4B as suggested in #2475 may also work for #2474 2018-01-18 11:44:04 +01:00
wjan 20d42549e3 adds option to provide location of rclone-executable and provides long descriptions for the options 2018-01-11 12:50:23 +01:00
wjan 7ecf6ed89f adds exception handling and moves duplicate code to helper function 2018-01-10 17:13:45 +01:00
wjan 8500988d7c adds rclone UI and backend improvements 2018-01-10 15:33:28 +01:00
wjan 65866f13d3 Corrects the folder of Rclone contributions 2018-01-09 09:41:40 +01:00
wjan 63061d533c provides rclone backend 2018-01-09 09:12:06 +01:00
vnau 9b9d9b1297 Fixed compiler warnings. 2017-12-17 01:34:21 +07:00
Kenneth Hsu 1c7391399d Remove XML documentation for unmatched parameters. 2017-12-09 18:30:01 -08: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
Kenneth Skovhede 6cc70c7ae5 Added a friendly error message if the SSH key fails to parse/load.
This fixes #2856
2017-11-19 17:28:51 +01:00
Kenneth Hsu 3d51e9153b Avoid signing assemblies.
Using strong-named assemblies can cause difficulties with the GNU LGPL
license, which allows for one to recombine or relink their application
with modified versions of the code.  While one solution is to share the
private key so that people can sign the assemblies themselves, this
would break the trust that is expected from signed assemblies.  For now,
the easiest fix is to simply not sign the assemblies.  Note that by
doing so, we prevent the code from being referenced from other signed
assemblies.

This also fixes an issue introduced in revision ba94d36a80 ("Added
auto-update for WindowsService and Service."), where the WindowsService
project (signed) referenced the AutoUpdater project (not signed).

We also removed instances of <SignAssembly>false</SignAssembly> to be
consistent with newly created .csproj files that do not contain the
SignAssembly element.

This was motivated by the discussion in issue #2814.
2017-10-15 22:00:23 -07:00
Tyler Gill dcc9faea31 Make sure HandleListExceptions(Func) calls HandleListExceptions(Action). 2017-10-14 09:17:19 -06:00
Tyler Gill 4a22a8b075 Fix FileBackend's quota detection for non-drive letter roots by falling back to GetDriveFreeSpaceEx. 2017-10-02 23:22:12 -06:00
Tyler Gill 44c53d3eb1 Merge branch 'master' of https://github.com/duplicati/duplicati into fix/list-ienumerable 2017-09-25 23:19:38 -06:00
Tyler Gill b3a3911d98 Change from wrapping yield returning methods with methods that do a try/catch, since they don't work due to lazy evaluation. 2017-09-25 23:19:31 -06:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Kenneth SkovhedeandGitHub 9141ccfd41 Merge pull request #2757 from tygill/feature/quota-info
Add IQuotaInfo interface
2017-09-25 23:05:19 +02:00
Kenneth Skovhede 98e603073a Fixed orphan curly brace 2017-09-25 14:43:37 +02:00
Kenneth Skovhede bc88be457e Added an option to select the pagesize used in B2 list_bucket requests 2017-09-25 11:56:02 +02:00
Tyler Gill b4f56750f8 Add IQuotaInfo interface
It also makes quota enabled backends return an instance of this interface instead of the quota components separately.
This way, getting quota stats requires only a single remote request on backends like Google Drive and OneDrive.
2017-09-24 17:30:52 -06:00
Kenneth Skovhede 6c921ab3ec Merge branch 'master' of github.com:duplicati/duplicati 2017-09-23 22:01:08 +02:00
Kenneth SkovhedeandGitHub ef3eb1854a Merge pull request #2752 from tygill/feature/onedrive-quota-rename
Add support for the quota reporting and renaming interfaces to the OneDrive backend
2017-09-23 15:05:22 +02:00
Kenneth Skovhede 5cae6ca60e Additional updates to NewtonSoft.Json 2017-09-23 14:46:14 +02:00
Kenneth Skovhede b610d60fc2 Updated System.Net.Http for Mega backend 2017-09-23 14:43:23 +02:00
Kenneth Skovhede ba36cadde3 Updated Renci.SSH 2017-09-23 00:27:55 +02:00
Kenneth Skovhede 93e04180c6 Updated the AWS libraries for S3 2017-09-23 00:27:06 +02:00
Kenneth Skovhede 26746cd903 Update the azureblob libraries 2017-09-23 00:26:38 +02:00
Kenneth Skovhede a06f38442a Updated all Newtonsoft.Json packages 2017-09-23 00:25:50 +02:00
Kenneth Skovhede 5970562022 Bugfix: better error message when there is no password for SSH backend 2017-09-23 00:15:53 +02:00