Commit Graph
10149 Commits
Author SHA1 Message Date
Valentin eda3666bc7 Add support for mega.nz two fa authentication 2021-06-26 13:39:05 +02:00
Kenneth Hsu 8559834d1f Use consistent style for advanced option descriptions.
Previously, the styles for the advanced options descriptions were
different between Step 2 (Destination) and Step 5 (Options).
2021-06-24 09:08:19 -07:00
Kenneth Hsu 8f1341306d Show deprecation message before option description. 2021-06-24 08:36:41 -07:00
Kenneth Hsu f4b2e5c0f0 Indicate deprecated options in UI.
This fixes #4566.
2021-06-23 10:04:53 -07:00
Kenneth Skovhede 650e1ff998 Version bump to v2.0.6.3-2.0.6.3_beta_2021-06-17
You can download this build from:

Binaries: https://updates.duplicati.com/beta/duplicati-2.0.6.3_beta_2021-06-17.zip

Signature file: https://updates.duplicati.com/beta/duplicati-2.0.6.3_beta_2021-06-17.zip.sig

ASCII signature file: https://updates.duplicati.com/beta/duplicati-2.0.6.3_beta_2021-06-17.zip.sig.asc

MD5: 5201b28339fd2e6ca33ed8674ca483df

SHA1: 276426778d4a9b02e3106d1d6dcf46601de1e753

SHA256: 85a45ce43e0f8050324854f64f130e8967d881c73c3e120cf81028c1f110cb50
v2.0.6.3-2.0.6.3_beta_2021-06-17
2021-06-17 11:30:38 +02:00
Kenneth Hsu de2a651763 Fix bug in PutAsync implementations.
Without await, the using statement can dispose the Stream before the
call to PutAsync completes, resulting in an ObjectDisposedException.

This fixes #4556.
2021-06-12 15:12:13 -07:00
warwickmmandGitHub 5af46b6eec Merge pull request #4548 from sergethedev17/bugfix/alternativeftp-test-rw
Fix read and write tests for AlternativeFTP backend.
2021-06-02 13:07:02 -07:00
Serge 5404fed634 Do not use StreamWriter 2021-06-02 19:35:40 +10:00
Serge 955dbebc03 Check contents of written test file
Before performing test write, reset stream Position to 0, otherwise test performs zero-byte write.
When performing test read, verify that file was written correctly.
2021-06-01 02:51:42 +10:00
warwickmmandGitHub ed86cca3e4 Merge pull request #4509 from sergethedev17/feature/azure-storage-sastoken
Add ability to provide SAS token for Azure backend
2021-05-30 10:15:43 -07:00
Kenneth Skovhede 5af9ed2d64 Version bump to v2.0.6.2-2.0.6.2_experimental_2021-05-29
You can download this build from:

Binaries: https://updates.duplicati.com/experimental/duplicati-2.0.6.2_experimental_2021-05-29.zip

Signature file: https://updates.duplicati.com/experimental/duplicati-2.0.6.2_experimental_2021-05-29.zip.sig

ASCII signature file: https://updates.duplicati.com/experimental/duplicati-2.0.6.2_experimental_2021-05-29.zip.sig.asc

MD5: d00ed869fd64381c1d54853f65baa86b

SHA1: 0013abb0c42ce0200f8ce8c3156ec4b74485c8e4

SHA256: 3762edf2aa75e75fef1dd3bc49a40bd8fab00c12742c5ca93cd903cd4bb5d6ab
v2.0.6.2-2.0.6.2_experimental_2021-05-29
2021-05-29 12:42:08 +02:00
Kenneth Skovhede b8d0b6d794 Merge commit '29f1d2c3cbb27ff1c1d205abc7d2f81ed51cb894' into release/2.0.6.2_experimental 2021-05-29 12:34:54 +02:00
Kenneth Skovhede fe99e8179e Merge commit 'a5fbee033536d54a937d7dbc7ff935efcbe10b7c' into release/2.0.6.2_experimental 2021-05-29 12:34:12 +02:00
Kenneth SkovhedeandGitHub 8ee90fdf64 Merge pull request #4506 from warwickmm/mono_ssh_avoid_ecdsa_algorithms
Avoid ECDSA algorithms when using SFTP with Mono
2021-05-29 12:22:52 +02:00
Kenneth SkovhedeandGitHub 368a3a9a9b Merge branch 'master' into feature/azure-storage-sastoken 2021-05-29 12:20:30 +02:00
Kenneth SkovhedeandGitHub 2bcb0f511c Merge pull request #4513 from warwickmm/fix_bug_handlings_deprecated_options
Fix bug in handling deprecated Azure and S3 options
2021-05-29 12:17:44 +02:00
Kenneth SkovhedeandGitHub dea88ee58c Merge pull request #4521 from warwickmm/use_consistent_target_framework
Use consistent target framework for .NET 5 entry executables
2021-05-29 12:14:37 +02:00
Kenneth Hsu 82f60d7989 Use consistent target frameworks for entry executables.
Previously, we would have inconsistent paths to the executables (net5
vs. net5.0).  For example,

Executables/net5/Duplicati.CommandLine.BackendTester/bin/Debug/net5.0
Executables/net5/Duplicati.CommandLine/bin/Debug/net5

With these changes, the path to the Duplicati.CommandLine executables
becomes

Executables/net5/Duplicati.CommandLine/bin/Debug/net5.0
2021-05-23 20:20:21 -07:00
Kenneth Hsu e90eb3b2a3 Create custom Exception for remote list verification failures.
Previously, we would catch any Exception thrown by VerifyRemoteList and
perform an auto-cleanup (if specified in the options).  However, we
should only perform the auto-cleanup if VerifyRemoteList detected an
issue with the uploaded files.  Otherwise, an unrelated exception can
cause the database repair to be performed unnecessarily.  In the case of
a connection issue, this can leave the database in a corrupted state.

This fixes #4516.
2021-05-20 13:42:41 -07:00
Kenneth Hsu a5fbee0335 Simplify exception handling when testing for ECDSA support.
.NET 5 moves the responsibility to the operating system, and since
SSH.NET currently relies on the ECDsaCng class, we will simply interpret
all exceptions to mean lack of ECDSA support.
2021-05-18 12:19:49 -07:00
Kenneth Hsu c246976fbb Cache knowledge of ECDSA support using static field.
This is simpler, and would potentially allow us to query this without an
instance.
2021-05-18 10:18:14 -07:00
Kenneth Hsu 22564bb2a3 Cache knowledge of ECDSA support. 2021-05-18 10:07:33 -07:00
Kenneth Hsu bfa240c8ec Assume we have ECDSA support if our test throws exception.
It's possible that our test will no longer be valid (e.g., due to
changes in SSH.NET), so we don't want the backend to fail if our test
is no longer valid.
2021-05-18 09:06:00 -07:00
Kenneth Hsu 90dfce81b2 Construct instance of ECDsaCng to test for ECDSA support.
This more closely reflects the SSH.NET code.
2021-05-18 09:00:40 -07:00
Kenneth Hsu 3d8817608e Test for ECDSA support explicitly.
The previous implementation could possibly fail for reasons unrelated to
ECDSA support.
2021-05-16 17:29:00 -07:00
warwickmmandGitHub 0a43410535 Merge pull request #4511 from marodev/cosmetics/technical-debt-use-string-interpolation
Simplify string formatting.
2021-05-16 10:33:36 -07:00
marodev a156c511da Reorder parameters of previously wrongly refactored string interpolation 2021-05-16 09:12:00 +02:00
Kenneth Hsu 29f1d2c3cb Fix bug handling deprecated Azure and S3 options.
In pull request #4443, we renamed some of the Azure and S3 options to
use dashes '-' instead of underscores '_' for consistency.  However, our
treatment of the options in the backend constructors still required that
the underscore versions be present even if the dashed version was
provided.

Now, we allow for either option to be present, but the value for the
dashed version will take precedence.
2021-05-15 14:37:53 -07:00
marodev e87688d9d3 Fix ReSharper's "Use string interpolation expression" / Code Smell 2021-05-15 17:02:57 +02:00
Serge 5b3d85fc25 Add authentication using Shared access signature token
Allow users to authenticate using a Shared access signature (SAS) token. SAS tokens are more secure because they:
 * have a start and expiry date/time
 * can be restricted to specified IP addresses
 * can limit access scope to a single Storage blob container
2021-05-15 21:22:50 +10:00
Serge 5172119864 Bugfix read non-present key from dictionary
The lines with null-coalescing operator (??) throw an exception when the dictionary does not contain the first key (eg azure_account_name). Exception thrown: "The given key was not present in the dictionary".
2021-05-15 21:03:26 +10:00
Kenneth Hsu a58f6b5d69 Add test for restoring file with newline character in name.
This concerns #4508.
2021-05-14 18:36:28 -07:00
Kenneth Hsu 4cc7beea2c Add test for restoring directory containing problematic filenames. 2021-05-14 18:34:52 -07:00
Kenneth Hsu 53621c984d Simplify verification of restored file in test. 2021-05-14 18:34:52 -07:00
Kenneth Hsu 8d99be95d8 Make period in regex filters match newline characters.
By default, the dot (.) element matches every character _except_ the
newline character.  This causes issues with files that have a newline
character in the name.  For example, they are excluded when restoring
the containing directory.

By specifying the RegexOptions.Singleline option, the dot (.) element
will match every character, including the newline character.

This fixes #4508.
2021-05-14 18:34:41 -07:00
Kenneth Hsu b80845a176 Enumerate items to list before modifying collection. 2021-05-11 15:40:33 -07:00
Kenneth Hsu 3e2103335b SSH: Avoid advertising support for ECDSA algorithms with Mono.
SSH.NET relies on the System.Security.Cryptography.ECDsaCng class for
ECDSA algorithms, which is not implemented in Mono (as of 6.12.0.144).
This prevents clients from connecting if one of the ECDSA algorithms is
chosen as the host key algorithm.  In the event that this causes a
connection failure, we will prevent the client from advertising support
for ECDSA algorithms and make another connection attempt.

Related forum discussion:

	https://forum.duplicati.com/t/release-2-0-6-1-beta-2021-sftp-failure-synology/12358
2021-05-11 12:42:34 -07:00
warwickmmandGitHub 7b4f475762 Merge pull request #4502 from samuel-w/master
Make file extension compression hints case-insensitive.
2021-05-09 14:29:59 -07:00
samuel-wandGitHub fa79b406a2 Improve comment 2021-05-09 15:16:31 -05:00
samuel-w d05d83cf4b Add comment 2021-05-08 15:51:10 -05:00
Kenneth SkovhedeandGitHub 1a4c3d1e01 Merge pull request #4499 from warwickmm/fix_make
Update Makefile to use msbuild instead of xbuild
2021-05-08 11:51:54 +02:00
Kenneth SkovhedeandGitHub a2fba718ba Merge pull request #4501 from warwickmm/fix_typo_in_script_examples
Fix typo in example scripts
2021-05-08 11:50:19 +02:00
Kenneth SkovhedeandGitHub a43f7c8c91 Merge pull request #4503 from samuel-w/dar-sql
Add Disk Archive files to compression hints
2021-05-08 11:48:59 +02:00
Kenneth SkovhedeandGitHub 8ce34c084b Merge pull request #4488 from warwickmm/file_backend_should_truncate
Make File backend truncate existing files when overwriting
2021-05-08 11:40:23 +02:00
samuel-w bfa24581c1 Add Disk Archive files to compression hints 2021-05-08 01:45:07 -05:00
samuel-w d5c83d2af3 Compare file extensions case insensitively.
Fixes https://github.com/duplicati/duplicati/issues/4493
2021-05-08 01:14:08 -05:00
Kenneth Hsu 2d5d300234 Fix typo in example scripts. 2021-05-06 14:03:00 -07:00
TopperDELandGitHub 3ed7d4b163 fix: Typo 2021-05-06 20:14:53 +02:00
TopperDEL 4992cc2ed8 fix: Validation for Bucket - must not be empty 2021-05-06 09:20:31 +02:00
TopperDEL fbf559c109 fix: Remove unnecessary strings 2021-05-06 09:06:25 +02:00