Commit Graph
1396 Commits
Author SHA1 Message Date
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
Tyler Gill 7c3ce32ee2 Add support for the quota reporting and renaming interfaces to the OneDrive backend.
To test the quota support, quota information is reported on the command line if it is available.
However, the rename support hasn't been tested, since I don't see anything using that functionality yet.
2017-09-22 00:30:10 -06:00
Kenneth Skovhede 6d401fbd8d Changed all hash algorithms to use the Cng version.
This fixes #2621
2017-09-20 09:58:43 +02: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 81f22826ca Changed S3 IAM to only use the bucket name in the policy document. 2017-09-16 20:29:44 +02:00
Ulf Hedlund 0988ba9600 minimum redundancy to wait for is now 1.0. Also, slightly better error handling. 2017-09-11 23:03:02 +02:00
Kenneth SkovhedeandGitHub 19668c8d17 Merge pull request #2677 from fuffenz/sia
Added Sia as a backend provider
2017-09-05 11:45:19 +02:00
Kenneth Skovhede 7d346a1f9a Fixed error in Wasabi endpoint url 2017-09-05 11:41:31 +02:00
Ulf Hedlund 5d2b889149 Simple sanity check for Sia target path 2017-09-04 14:14:08 +02:00
Kenneth Skovhede 19a040970f Implemented call-context aware settings for HTTP options, temp folder settings, buffers sizes and oauth settings.
This makes it more smooth to run multiple operations in parellel, but it should be possible to launch an operation in a separate app-domain
2017-09-04 11:05:16 +02:00
Ulf Hedlund 7150eecd5b Trim target path properly 2017-09-02 00:07:06 +02:00
Ulf Hedlund a446e31f9d fixed issue with an empty Sia at first backup 2017-09-01 22:15:32 +02:00
Ulf Hedlund dfad50ea51 cleaned up Sia options 2017-09-01 21:37:19 +02:00