Commit Graph
10149 Commits
Author SHA1 Message Date
Karen Martikyan 8d59448939 Few fixes made 2020-09-20 22:57:04 +04:00
Karen Martikyan 703550c12b Cleanup ran, session hex restore made 2020-09-20 22:57:04 +04:00
Karen Martikyan d27fd5092d Disposing filestreams 2020-09-20 22:57:04 +04:00
Karen Martikyan d9d0609de9 Improvements made to code generaly, implemented Get 2020-09-20 22:57:04 +04:00
Karen Martikyan dacdb987ad Implemented PutAsync correct file names 2020-09-20 22:57:04 +04:00
Karen Martikyan d6d1beed1b Made getChannel by synchronous 2020-09-20 22:57:04 +04:00
Karen Martikyan 58ac8fc856 Connection worked again, after few hours debugging 2020-09-20 22:57:04 +04:00
Karen Martikyan fb19a53aa0 Modifying the ip of DC using reflection, connecting policy changes made 2020-09-20 22:57:04 +04:00
Karen Martikyan 4848f2fcd5 Removed redundant logic 2020-09-20 22:57:04 +04:00
Karen Martikyan 102a764f5b Improvements made, not working state 2020-09-20 22:57:04 +04:00
Karen Martikyan a804b6ddf2 NWS 2020-09-20 22:57:04 +04:00
Karen Martikyan f225553d6c Connection worked! 2020-09-20 22:57:03 +04:00
Karen Martikyan 647aa3872b Small changes, adding test projects/files, needed to squash commits 2020-09-20 22:57:03 +04:00
Karen Martikyan 73fbb047e7 Added Telegram Backend skeleton 2020-09-20 22:57:03 +04:00
warwickmmandGitHub 66078a677e Merge pull request #4321 from dferreyra/disable_legacy_path_handling
Disable "legacy path handling" for executables
2020-09-20 09:41:08 -07:00
Karen MartikyanandGitHub 5a89f3c7b1 Merge pull request #1 from duplicati/master
Merging from duplicati/duplicati master into current
2020-09-20 18:17:32 +04:00
Dean Ferreyra edb2819d6f Disable "legacy path handling" for executables
This is a defensive measure in case legacy path handling has been
enabled at the system level.  Duplicati requires that legacy path
handling be _disabled_ to function properly.

Issue #4295 appears to be a result of legacy path handling being
enabled globally.
2020-09-18 19:58:18 -07:00
warwickmmandGitHub ba48f14746 Merge pull request #4311 from dferreyra/symlink_unit_tests
Add symlink policy tests and file and directory comparison methods.
2020-09-13 10:09:23 -07:00
Dean Ferreyra a3c27a2ba2 Add Assert.Fail to catch unexpected symlink policies 2020-09-13 08:12:23 -07:00
Dean Ferreyra a060b85039 Add travis_wait to "Border" tests to avoid timeout 2020-09-13 07:45:30 -07:00
Dean Ferreyra 641a590d89 For "Ignore" policy, also ensure a file doesn't exist 2020-09-12 20:33:39 -07:00
Dean Ferreyra e3b8a12ec1 Unit test improvements per review comments 2020-09-12 17:03:48 -07:00
Dean Ferreyra eafe7320e9 Address review comments 2020-09-12 14:45:55 -07:00
Dean Ferreyra 3366071d04 Add back missing stream reset to AssertFilesAreEqual 2020-09-12 14:29:04 -07:00
Dean Ferreyra 0367418925 Fix typo in log and assert messages 2020-09-12 10:52:01 -07:00
Dean Ferreyra 75b688c999 Restore use of Utility.CompareStreams in AssertFilesAreEqual
For performance reasons, use `Utility.CompareStreams` in
AssertFilesAreEqual.
2020-09-12 08:08:52 -07:00
Dean Ferreyra 2c56634899 Add tolerance to file time comparisons 2020-09-11 23:25:03 -07:00
Dean Ferreyra f4195e4eb0 Address review comments from @warwickmm
Replace `VerifyDir` and `CompareFiles` with
`AssertDirectoryTreesAreEquivalent` and `AssertFilesAreEqual`.

Move `WriteFile` to `TestUtils`.

Add "Symlink" category to start.sh.
2020-09-11 20:06:53 -07:00
Kenneth Hsu 7c59b3d531 Add Storadera S3 provider.
This fixes #4313.
2020-09-10 16:44:31 -07:00
Dean Ferreyra f56f64e541 Merge branch 'master' into symlink_unit_tests 2020-09-09 20:03:32 -07:00
warwickmmandGitHub fcc44eacaf Merge pull request #4279 from warwickmm/add_local_test_categories
Add missing test categories to local test runner script
2020-09-09 18:05:29 -07:00
Dean Ferreyra b3e01e500c Add SymLink test category to .travis.yml 2020-09-08 07:38:40 -07:00
Dean Ferreyra be6ac941ea Add symlink policy tests
This adds a basic symlink policy test that performs backups using each
symlink policy.

If you don't have the required privilege in Windows, you can get an
exception trying to create a symbolic link.  If an exception is thrown
trying to create a symbolic link, the exception is trapped and the
test is marked as "Ignored"; e.g.,
```
1) Ignored : Duplicati.UnitTest.SymLinkTests.SymLinkPolicy
Client could not create a symbolic link.  Error reported: (1314) A required privilege is not held by the client. | Read: [C:\td\backup-data\target] | Write: [C:\td\backup-data\symlink]
```
2020-09-07 22:50:21 -07:00
warwickmmandGitHub 174edf422e Merge pull request #4302 from dferreyra/literal_wildcard_characters
Fix restore GUI handling of folders with wildcard characters.

This does so by introducing a new syntax for verbatim path specifications.
Similar to C#, expressions that are prefixed by '@' are treated as verbatim 
string literals.
2020-09-07 19:31:41 -07:00
Dean Ferreyra 93601d0a82 Address review comments from @warwickmm 2020-09-07 18:56:59 -07:00
Dean Ferreyra 78555241c1 Address review comments from @warwickmm 2020-09-07 14:45:08 -07:00
Dean Ferreyra 536ce69668 Address review comments from @warwickmm 2020-09-06 21:30:46 -07:00
Dean Ferreyra 27da5a4dc7 Include Windows in tests for directory names with wildcards 2020-09-06 15:00:48 -07:00
Kenneth Hsu 7d13d9ed81 Add tests for directory names with wildcards. 2020-09-05 15:05:11 -07:00
Dean Ferreyra 5436d16c20 Fix restore GUI for filters with wildcard characters
In RestoreController.js, remove the branch on whether the path
contains wildcard characters and instead use code that works for all
cases.
2020-09-04 16:54:49 -07:00
Dean Ferreyra 5c2fb96f5f Support globbing for "@" filters in "find" and "restore"
Change some comments.
2020-09-04 09:54:33 -07:00
Dean Ferreyra 3a66668e6a Support globbing for "@" filters in "find" and "restore"
Remove unneeded calls to `ToList()`.
2020-09-04 07:25:31 -07:00
Dean Ferreyra f6e79da78d Support globbing for "@" filters in "find" and "restore"
For `@` filters, support normal behavior of "find" and "restore" where
they automatically prefix or suffix some file name arguments with `*`.
2020-09-04 02:01:37 -07:00
Dean Ferreyra 071f7ed7b0 Fix restore GUI for filters with wildcard characters
Fix bug in line to detect literal wildcard characters.
2020-09-03 23:55:27 -07:00
Dean Ferreyra ff91c47f68 Fix restore GUI for filters with wildcard characters
Change RestoreController.js to handle the case where the selected
restore paths contain literal wildcard characters.  For files, prefix
with `@`.  For directories, convert to regular expression filters so
that we can preserve the literal wildcard characters and also support
the equivalent of a globbing `*` suffix.
2020-09-03 22:59:24 -07:00
Kenneth Hsu dd902ce7b2 Remove misleading comment.
The retention policy logic was changed, and this comment was leftover
from the old implementation.

https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195/34?u=ts678

This fixes #3306.
2020-09-03 19:48:47 -07:00
Dean Ferreyra b8501dfd77 Add additional handling for @ filters
Change "find" and "restore" commands to not prefix `@` file filters
with `*` and to not suffix `@` folder filters with `*` since wildcards
cannot be used with `@` filters.
2020-09-01 23:56:00 -07:00
Dean Ferreyra 5f972c2437 Make FilterEntry of type Simple for @ again
Switch back to using `FilterType.Simple` for `@` filters to fix the
restore picker again.

In LocalDatabase.cs, replace code that was explicitly looking for the
presence of wildcard characters to instead trigger off of
`FilterType.Wildcard`.  This fixes the "find" command.

Change FilterEntry.ToString() to prefix Simple filters with `@` so
that if simple filters with wildcard characters make the round-trip
through a string, their `FilterType.Simple` type is preserved.
2020-09-01 23:04:03 -07:00
Dean Ferreyra fd76fb32ef Fix FilterEntry for @ entries to be of type Regexp 2020-08-31 21:25:18 -07:00
Kenneth Hsu 4008736494 Fix typo that resulted in hidden SSH fingerprint error.
This fixes #4301.
2020-08-31 19:52:17 -07:00