Commit Graph
1396 Commits
Author SHA1 Message Date
TopperDEL 4f694d108d build: Bump uplink.Net-Dependancy to v2.2.2 supporting MacOS 2020-06-04 16:42:17 +02:00
Max b008aed1f3 migrate to net5 + runnable 2020-06-03 00:00:38 +02:00
Max 3f2eb254c3 buildable again 2020-05-31 14:38:14 +02:00
Max c882953fdd upstream 2020-05-31 13:50:13 +02:00
warwickmmandGitHub 69091fe05b Merge pull request #4205 from TopperDEL/tardigrade-fix-restore
Fix restore with Tardigrade-backend when folders are used
2020-05-20 09:26:30 -07:00
TopperDEL da0602fce9 fix: List only the files relevant for the current folder (if provided) 2020-05-20 12:34:05 +02:00
TopperDELandGitHub fa44c419e7 Merge branch 'master' into tardigrad-correct-basepath 2020-05-20 08:39:49 +02:00
TopperDEL 3600eed64d fix: Move the tardigrad-library to the correct location 2020-05-20 08:36:22 +02:00
TopperDEL ba82edf7f8 fix: Correct Package-References 2020-05-19 16:11:58 +02:00
TopperDEL 62ae46f223 fix: Move the tardigrad-library to the correct location 2020-05-19 14:01:44 +02:00
Kenneth Skovhede 1ab8256f1d Removed mentions of "Amazon S3" and changed it to "S3 compatible" as Duplicati (and the backend) is not associated with Amazon. 2020-05-11 08:55:20 +02:00
Kenneth SkovhedeandGitHub 2f3b2d8ccd Merge pull request #4196 from mycloudyplace/feature/mycloudyplace-provider-europe
Added MyCloudyPlace.com S3 provider
2020-05-11 08:47:26 +02:00
Kenneth Skovhede f0891ef4fd Added error handling to the Dropbox backend for cases where the Dropbox server responds with invalid JSON in the error message. 2020-05-10 14:15:35 +02:00
Kenneth Skovhede 2f1f5bb7e0 The purpose of this update is to provide better error messages from servers that return error messages, but are expected to return JSON data.
In the current setup, the response stream is parsed by the JSON decoder, which throws an exception due to reading a non-json formatted error message.
The reported exception simply states that the first character on the first line was not valid json, which is true, but does not help diagnose the problem.

In many cases this is a human readable message, such as "over quota", "permission denied", etc.
This update adds a stream that keeps the first 2kb of the response in an internal buffer, which can then be printed in case the JSON parsing fails.
Most of the added code is just simple redirects for calling the base stream in the peeking stream.
2020-05-10 14:14:35 +02:00
Cedric Hauber 0276eca34e Added MyCloudyPlace.com S3 provider 2020-05-06 19:05:22 +02:00
Allan NordhøyandGitHub ac3d761412 Spelling: e.g, option activated 2020-04-18 15:58:28 +00:00
Kenneth SkovhedeandGitHub 6a8912c473 Merge pull request #4145 from tygill/feature/ms-graph-non-httpclient
Allow MS Graph backends (e.g., OneDrive v2) to use OAuthHelper instead of OAuthHttpClient
2020-03-25 07:09:44 +01:00
Tyler Gill 1ae534e45e Add ConfigureAwait(false) to JSONWebHelper.cs 2020-03-23 20:22:22 -06:00
Tyler Gill e742205f65 Add --use-http-client=false parameter to backends based on Microsoft Graph APIs (OneDrive v2, SharePoint v2, etc.) to make them use the OAuthHelper and HttpWebRequest infra used by most / all other backends for HTTP requests. This lives in parallel to the original implementation that uses the OAuthHttpClient class, but is intended to see if this prevents the memory leaks and problems seen in some versions of Mono when using the OneDrive v2 backend. 2020-03-23 14:10:40 -06:00
Kenneth Hsu 21d0247e6d Throw TimeoutException when an HTTP timeout occurs.
The HttpClient.GetAsync method throws an OperationCanceledException when
the timeout is exceeded.  In order to provide a more informative
exception, we will detect this case and throw a TimeoutException
instead.

This is related to issue #3772.
2020-03-05 12:00:23 -08:00
Kenneth Hsu 4acbdb700b Update OVH backend URL to Keystone API v3.
OVH is updating the Keystone API from v2 to v3:

https://ovh.slgnt.eu/optiext/optiextension.dll?ID=dStdoW+qPGF+x+s02CEdQ_I66qw4G_Z_rqsNrzqCkOZiWQwdnmWGsZerWXZIQoWQpcyyq3Su3addd_

This fixes #4087.
2020-02-05 20:41:31 -08:00
Kenneth Hsu 3551238000 Remove redundant calls to String.Format. 2020-01-25 17:07:02 -08:00
Max 7e2218663e Add Compat Analyzers 2019-12-25 19:08:52 +01:00
Max 76b191327f packages update 2 2019-12-25 18:23:23 +01:00
Max 28793ef204 packages update 2019-12-25 18:21:24 +01:00
Max 41a5591532 upstream 2019-12-25 16:34:56 +01:00
warwickmmandGitHub 1cc10b1caa Merge pull request #4020 from verhoek/esthetical_sshv2
Esthetical changes to SSH2 backend code.
2019-12-18 19:35:38 -08:00
verhoek f16ba3d49b Indentation cleanup. 2019-12-18 20:38:21 +01:00
Kenneth Hsu 83ac03843d Fix spelling errors in comments.
In doing so, we also normalized some line endings.
2019-12-14 09:52:55 -08:00
verhoek 72b6c7b780 Esthetical changes to SSH2 backend code.
Mostly auto suggested from IDE.
2019-12-12 21:57:27 +01:00
Kenneth SkovhedeandGitHub 2667db678b Merge branch 'master' into issue_3979 2019-12-12 11:50:35 +01:00
Kenneth Hsu 48444782c2 Fix regression with SharePoint backend.
In pull request #3989, we set the conflict resolution behavior for
creating new items to be "Replace".  While this worked for OneDrive,
SharePoint apparently is case-sensitive and expects "replace".  Since
the default behavior is to replace, we will simply remove the
specification to avoid possible conflicts.

See the forum discussion below:

https://forum.duplicati.com/t/bad-request-error-from-request-nameconflictbehavior-must-be-fail-replace-or-rename/8578
2019-12-07 12:19:21 -08:00
Kenneth Hsu 53a35e6e06 Remove support for Amazon Cloud Drive.
Amazon discontinued access to the Cloud Drive API.

See https://forum.duplicati.com/t/amazon-cloud-drive-discontinued/7391.
2019-12-01 10:36:36 -08:00
verhoek 3f3de17d1c Fix codacy complaints. 2019-11-30 23:14:17 +01:00
verhoek 274bcfc437 Removed forgotten m_options. 2019-11-27 21:49:45 +01:00
verhoek 8d782bd0c8 Make codacy happier. 2019-11-26 22:19:11 +01:00
verhoek 707ee587af Use same exception handling cases for Minio as for the AWS client. 2019-11-26 21:59:53 +01:00
verhoek f93562931d Adjusted static command line doc for s3-client. 2019-11-25 23:46:50 +01:00
verhoek 0ff63913ed Implemented remaining methods.
Add remove object method.
Add dns host.
Added rename method.
2019-11-25 22:44:16 +01:00
verhoek 8f0002465e Add get object to minio client. 2019-11-24 22:53:37 +01:00
verhoek 201a3a27a7 Removal of obsolete method. 2019-11-24 22:53:21 +01:00
verhoek 2243c7d609 Added put object to minio s3 client. 2019-11-24 11:21:00 +01:00
verhoek fee7ad02a9 Remove unused functions from aws sdk wrapper. 2019-11-24 11:11:17 +01:00
verhoek 0cc79c5a6e Implemented addbucket for minio. 2019-11-23 09:45:06 +01:00
verhoek 259dd75953 Added listbucket for minio client 2019-11-22 22:37:23 +01:00
verhoek a0b20bfd92 Created s3 client interface. 2019-11-21 22:37:32 +01:00
verhoek 7b859792fe Start writing MinioWrapper using Minio. 2019-11-21 22:37:09 +01:00
Tyler Gill 5364345edd Add ConfigureAwait(false) to MSGraph backends' awaits. 2019-11-14 07:51:49 -07:00
Tyler Gill e9543142f2 Explicitly dispose request messages, request contents, and response messages 2019-11-13 12:18:19 -07:00
warwickmmandGitHub f23bcdcac9 Merge pull request #3958 from tygill/feature/buffer-reads-httpclient
Support BufferRequests in HttpClient based backends
2019-10-26 09:53:58 -07:00