Commit Graph
9823 Commits
Author SHA1 Message Date
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
TopperDEL 77355e1f34 fix: Indentation 2021-05-06 09:05:16 +02:00
TopperDEL 4609743e24 fix: Command line options 2021-05-06 08:57:43 +02:00
TopperDEL 001329bcd8 fix: fetch parameters from options via TryGetValue 2021-05-06 08:56:39 +02:00
Kenneth Hsu 2ee92d5716 Update Makefile to use msbuild instead of xbuild.
This fixes #4454.
2021-05-05 16:52:02 -07:00
warwickmmandGitHub 50ed059e11 Merge pull request #4469 from tygill/fix/ms-graph-throttling
Fix OneDrive throttling and respect retry-after header.
2021-05-04 09:42:52 -07:00
warwickmmandGitHub 90bcedbd52 Merge pull request #4470 from aureliandevel/master
Fix typo in wasted space report query.
2021-05-04 09:10:01 -07:00
warwickmmandGitHub df7d2de870 Merge pull request #4495 from warwickmm/fix_workflow_builds
Install gtk-sharp2 to fix GitHub workflow builds
2021-05-03 14:03:36 -07:00
Kenneth Hsu a69599c37c Use title case for job steps for consistency. 2021-05-03 14:03:20 -07:00
Kenneth Hsu e435622ca6 Install gtk-sharp2 package for tests run on ubuntu-latest.
This seems to have been previously included when the job ran on Ubuntu
18.04.5.  Now that it has been upgraded to Ubuntu 20.04.2, the gtk-sharp
libraries appear to be missing.
2021-05-03 12:06:45 -07:00
Kenneth Hsu b785cfb50e Restore NuGet packages in separate step.
This more closely mirrors the steps in the unit_tests job.
2021-05-03 12:01:08 -07:00
warwickmmandGitHub da2e51a80b Merge pull request #4431 from warwickmm/add_workflow_for_tests
Add GitHub workflow to run tests
2021-05-03 11:47:18 -07:00
TopperDEL 6253dcad40 feat: Rename all parameters and UIs
Existing configurations will not be affected
2021-05-03 10:36:39 +02:00
TopperDEL a3d9d4c6ba feat: Rename C# and Project-files to Storj 2021-05-03 09:50:29 +02:00
Kenneth Skovhede 94bb7a344a Version bump to v2.0.6.1-2.0.6.1_beta_2021-05-03
You can download this build from:

Binaries: https://updates.duplicati.com/beta/duplicati-2.0.6.1_beta_2021-05-03.zip

Signature file: https://updates.duplicati.com/beta/duplicati-2.0.6.1_beta_2021-05-03.zip.sig

ASCII signature file: https://updates.duplicati.com/beta/duplicati-2.0.6.1_beta_2021-05-03.zip.sig.asc

MD5: 84d92bea98059f506b7b3fffbf451c82

SHA1: 69a42767807a57b2913a715fd620727321867b9c

SHA256: 15ca4f0257beeb50fb9a4a5461bcc8205c5fb6949835a1eceb9b59112505267f
v2.0.6.1-2.0.6.1_beta_2021-05-03
2021-05-03 08:46:46 +02:00
Kenneth Skovhede 548c7ab953 Bump version number prior to build 2021-05-03 08:40:14 +02:00
TopperDEL b88a9fb6dc feat: Rename Tardigrade to Storj DCS in Readme 2021-04-30 08:45:43 +02:00
TopperDEL 841af572b5 feat: Bucket name verification (RegEx) 2021-04-29 15:35:13 +02:00
TopperDEL ed45ab1535 feat: Enhance input-validation 2021-04-29 15:25:07 +02:00
TopperDEL 7e07cf5b6a feat: Verify encryption passphrase 2021-04-29 15:02:00 +02:00
TopperDEL d923cfaa6e feat: Further rename 2021-04-29 14:10:46 +02:00
TopperDEL 96c28e8e32 feat: Rename Tardigrade to Storj DCS 2021-04-29 14:09:05 +02:00
TopperDEL 9bb892ef04 feat: Update satellites-list 2021-04-29 14:06:16 +02:00
TopperDEL d9a4b939b1 build: Update to latest uplink.NET 2021-04-29 13:58:11 +02:00
Kenneth Hsu c14ace0d68 Make File backend truncate existing files when overwriting.
The implementations of ISystemIO.FileOpenWrite call File.OpenWrite,
which does not truncate the existing file.  As such, if we overwrite a
larger file with a smaller one, tail remnants of the existing file will
remain.

Since most of the put operations involve unique filenames, this is only
a problem when overwriting existing files (e.g.,
duplicati-verification.json).

This fixes a regression introduced in revision 71c6aca8a7 ("Fixed IO
calls in Filebackend") from pull request #3456.  The previous
implementation called File.Open with FileMode.Create, which truncates
existing files.

This fixes #4486.
2021-04-20 16:16:00 -07:00
Thomas Suckow 1e64788a6b Change console logs to Logger 2021-04-13 07:48:27 -07:00
Thomas Suckow 7b90ed3c5a Fix loading backup defaults after assembly rename 2021-04-11 13:37:54 -07:00