Commit Graph
3969 Commits
Author SHA1 Message Date
Kenneth Hsu a0098ffb87 Disable warnings about unused constructors. 2019-05-12 10:05:58 -07:00
Kenneth Hsu 66f09fe0d0 Disable warning about unused class. 2019-05-12 10:05:58 -07:00
Kenneth Hsu 5e063e9225 Remove unused SupportsStreaming property. 2019-05-12 10:05:58 -07:00
Kenneth Hsu 750b2616f2 Remove unused AddFileObject method. 2019-05-12 10:05:58 -07:00
Kenneth Hsu 402ca280cf Remove unused GetFileObject method. 2019-05-12 10:05:58 -07:00
Daniel Gehriger a394eefe6c Checking for empty filter expression 2019-05-10 11:11:22 +02:00
Michal Naiman f4eef557ee upstream 2019-05-07 11:48:40 +02:00
Kenneth SkovhedeandGitHub 46ac242588 Merge pull request #3757 from warwickmm/fix_amazon_and_box_backend
Fix Amazon Cloud Drive and Box backends
2019-05-06 23:23:22 +02:00
Kenneth SkovhedeandGitHub 5c0ea5a282 Merge pull request #3759 from Pectojin/json_output_should_use_subject
added boolean check to make the json output use the subject template …
2019-05-06 16:49:28 +02:00
Rune Henriksen 155123d22a added boolean check to make the json output use the subject template instead of always returning the result as a json payload 2019-05-05 23:33:50 +02:00
Rune Henriksen 3c986a3fe5 Check the block size to avoid scavenging behavoir when Duplicati can't locate the 'empty' block which doesn't exist 2019-05-05 02:20:32 +02:00
Kenneth Hsu ffaaa55f2f Use AsyncHttpRequest to handle async HttpWebRequests.
For some reason, when using HttpWebRequest.GetRequestStreamAsync, the
Amazon Cloud Drive and Box backends would fail when attempting to upload
larger amounts of data (these are the only backends that use the
PostMultipartAsync method).

This fixes issue #3756.
2019-05-04 16:38:36 -07:00
Michal Naiman 84de33bd5f clean deps 2019-05-01 21:47:20 +02:00
Michal Naiman 787bcb57ae fixed Sharepoint backend 2019-05-01 10:29:38 +02:00
Michal Naiman c01210a443 mozroots remove 2 2019-05-01 10:11:02 +02:00
Michal Naiman ad2105aeb2 NuGet packages update 2019-05-01 09:28:46 +02:00
Michal Naiman 0cb6e4a1bf nuget upgrade 2019-05-01 08:37:22 +02:00
Michal Naiman 0d4ded3ae2 fix build and temp logging 2019-04-29 20:47:11 +02:00
Michal Naiman 5ae4319d92 Alter to C# 7.0 feature 2019-04-29 08:22:22 +02:00
Michal Naiman aed2f4d5c8 Fixes related to DNC libraries interfaces 2019-04-29 00:57:02 +02:00
Michal Naiman cff004df76 fixes for AlphaFS long path 2019-04-28 23:32:30 +02:00
Michal Naiman 1bc1e58737 upstream 2019-04-28 13:45:26 +02:00
Michal Naiman 633f6e7de2 cosmetic fix 2019-04-28 13:34:17 +02:00
Kenneth SkovhedeandGitHub 83bb725dc6 Merge pull request #3740 from warwickmm/remove_unused_local_variables
Remove unused local variables
2019-04-25 13:22:39 +02:00
Kenneth Hsu a7779225b9 Run PRAGMA optimize when closing SQLite connection.
It's recommended that PRAGMA optimize be run just before closing each
database connection "to achieve the best long-term query performance
without the need to do a detailed engineering analysis of the
application schema and SQL".  Some users have been running this manually
and experiencing significant improvements in performance:

https://sqlite.org/pragma.html#pragma_optimize
https://forum.duplicati.com/t/verifying-backend-data/348/65
https://forum.duplicati.com/t/verifying-backend-data-forever/5324/32

This addresses issue #3745.
2019-04-22 21:16:29 -07:00
drwtsn32x 41a639ddc5 Show vacuum in status message 2019-04-18 21:04:31 -07:00
Kenneth Hsu 457254d9e1 Remove unused local variables. 2019-04-17 20:10:53 -07:00
Kenneth SkovhedeandGitHub cb44723c11 Merge pull request #3720 from warwickmm/throw_failed_put_exception
Ensure that failed put operations throw exception
2019-04-09 22:40:41 +02:00
Kenneth SkovhedeandGitHub e771d0f8a2 Merge pull request #3728 from duplicati/fix-string-fileReadBuferSize
Fix FileReadBufferSizeLong typo
2019-04-09 22:37:52 +02:00
Rune Henriksen ae5b3b2e95 remove an invalid trailing parenthesis and change the drop clause to drop view since File was changed from a table to a view in 2.0.4.13 2019-04-09 21:12:25 +02:00
Rune HenriksenandGitHub f4fdb880c0 Merge pull request #3717 from flafleur/CertificatFingerprintDescription
Change certificat hash description from SHA256 to SHA1
2019-04-09 12:02:20 +02:00
JonMikelVandGitHub 8aa037bc24 Fix FileReadBufferSizeLong typo
"bytes a read from a file" -> "bytes are read from a file"
2019-04-08 23:45:11 -05:00
Kenneth Skovhede b705b531a6 Fixed an issue where the randomly generated database names were numeric instead of alphabetic.
This has no impact on existing database, as the names are stored once generated.
2019-04-08 13:48:38 +02:00
Kenneth Hsu 914203c071 Reorder methods alphabetically. 2019-04-06 21:42:01 -07:00
Francois Lafleur f161ce3f1f https://github.com/duplicati/duplicati/issues/3675 2019-04-05 12:29:03 -04:00
mukut1994 9101f898c7 Fix code review issues 2019-04-04 23:44:22 +01:00
mukut1994 6f34002aea Add google team drive support 2019-04-04 23:30:59 +01:00
Francois Lafleur f51a3e07d5 Cache Files filter group doesn't exclude Chrome files on Mac/Linux #3633 2019-04-03 23:08:28 -04:00
Kenneth Hsu e3c16c58fd Set flushed result after all tasks have completed. 2019-03-31 19:41:09 -07:00
Kenneth Hsu be21e09db1 Cancel the FlushBackend task if upload exception occurs.
This should avoid the problem of something awaiting a
FlushBackend.LastWriteSizeAync task that may never complete.
2019-03-31 19:41:09 -07:00
Kenneth Hsu 9a80e422e9 Remove unnecessary try-finally.
The only code in the finally block was to set the result of the
FlushRequest if the completed task was not faulted.  This could be done
without the try-finally.
2019-03-31 19:38:42 -07:00
Kenneth Hsu 19981ae59d Simplify implementation of FlushBackend.
If the uploader throws an exception, we should not set the status of the
flush request and let the exception bubble up.
2019-03-31 19:38:42 -07:00
Kenneth Hsu fdb2c6788c Ensure that failed put operations throw exception.
The FlushBackend method uses Task.WhenAny to await the first completion
of the uploader task or the flush request.  Since the uploader was
setting the status of the flush request in the finally block, the flush
request would complete first when an exception was thrown, causing the
uploader's exception to be unobserved.  To resolve this,  we check that
the uploader's status is not faulted before setting the flush request
status.

This addresses issue #3673.
2019-03-31 19:38:40 -07:00
Sean Templeton 8be3203aa2 Fix index files not being created for full dblock files
As part of the parallel upload changes a bug slipped in where a check was
being made if the index volume writer exists before creating said index
volume writer. Fixed by changing the test to check if the temporary index
volume exists and then creating the writer for the index file.
2019-03-30 19:55:36 -05:00
Kenneth Hsu da4dabe838 Fix typo in async property name. 2019-03-28 20:53:55 -07:00
warwickmmandGitHub 5b54c26571 Merge pull request #3691 from nescafe2002/master
Implement Jottacloud multithreaded downloading support
2019-03-26 18:59:59 -07:00
Joris d1161f9872 Codacy recommendation 2019-03-25 10:47:18 +01:00
Joris 5bffd23879 Commented on chunk size limiting 2019-03-25 10:46:58 +01:00
Joris 6440bf7c90 Fixed: The file X was downloaded and had size 0 but the size was expected to be N 2019-03-22 09:35:09 +01:00
Kenneth Hsu 81b9e75a29 Preserve stack trace while unwrapping TargetInvocationExceptions.
If we simply throw the inner exception, the stack trace is lost.  If we
throw a new exception with the originating exception as the inner
exception, the user is not provided with any meaningful information.
2019-03-21 19:26:14 -07:00