Commit Graph
8782 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 3a08c8ca2d Merge pull request #4140 from warwickmm/remove_common_strings
Remove unused CommonStrings class
2020-03-25 07:05:59 +01:00
Kenneth SkovhedeandGitHub bb05d1edde Merge pull request #4139 from warwickmm/remove_unused_result_classes_members
Remove unused members from Duplicati.Library.Main.ResultClasses
2020-03-25 07:05:15 +01:00
Kenneth SkovhedeandGitHub 535268d1f7 Merge pull request #4138 from warwickmm/remove_unused_strings_members
Remove unused members from Duplicati.Library.Main.Strings
2020-03-25 07:04:09 +01:00
Kenneth SkovhedeandGitHub f628c5dd01 Merge pull request #4136 from warwickmm/remove_unused_database_members
Remove unused members from Duplicati.Library.Main.Database
2020-03-25 07:03:41 +01:00
Kenneth SkovhedeandGitHub 9b94f6299b Merge pull request #4128 from warwickmm/throw_http_timeout_exception
Throw TimeoutException upon HTTP timeout for GET operations
2020-03-25 07:00:00 +01:00
Kenneth SkovhedeandGitHub a01a2dc3ba Merge pull request #4123 from warwickmm/fix_block_device_type
Fix detection of block devices in UnixSupport.File.GetFileType
2020-03-25 06:58:58 +01:00
Kenneth SkovhedeandGitHub c95def65f5 Merge pull request #4122 from warwickmm/fix_upload_retry_attempts
Fix log message for retried upload operations
2020-03-25 06:58:14 +01:00
warwickmmandGitHub 8d09c335f3 Merge pull request #4146 from tygill/fix/default-nuget-config
Ensure that NuGet packages are downloaded to expected directory.
2020-03-24 16:58:34 -07:00
Tyler Gill 1ae534e45e Add ConfigureAwait(false) to JSONWebHelper.cs 2020-03-23 20:22:22 -06:00
Tyler Gill 476491e423 Add default nuget.config to ensure any system-wide nuget config for the package location is ignored. 2020-03-23 14:26:25 -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
warwickmmandGitHub 7679e9dee9 Merge pull request #4135 from warwickmm/remove_resharper_comment
Remove comment disabling ReSharper warning
2020-03-21 10:40:59 -07:00
warwickmmandGitHub 5b30da79a6 Merge pull request #4137 from warwickmm/revert_volume_writer_disposal
Revert incorrect disposal of IndexVolumeWriter
2020-03-21 10:40:23 -07:00
warwickmmandGitHub f00df1e950 Merge pull request #4142 from drwtsn32x/refine-storing-inheritance-breaks
Avoid rescan due to existence of new metadata option
2020-03-18 17:00:31 -07:00
Rod Savard c247d01c6e remove spaces 2020-03-18 04:57:25 -07:00
Rod Savard b30fdfe34d add comment and simplify key value assignment 2020-03-17 21:35:19 -07:00
Rod Savard 4c41fd691a only store inheritance breaks in metadata when true 2020-03-17 06:48:00 -07:00
Kenneth Hsu 5170c6ad1d Remove unused CommonStrings class.
The last usages were removed in revision 62c75d9af9 ("Removed all
informs code (no more 1.3.x UI)").
2020-03-15 14:12:19 -07:00
Kenneth Hsu bf5ae9afac Disable false ReSharper warnings for unused properties.
These properties are referenced in the logs.
2020-03-15 12:11:10 -07:00
Kenneth Hsu 043a11967a Remove unused members from Duplicati.Library.Main.ResultClasses. 2020-03-15 12:09:13 -07:00
Kenneth Hsu 62781b508f Remove unused members from Duplicati.Library.Main.Strings. 2020-03-15 11:13:04 -07:00
Kenneth Hsu a42a0a41b6 Remove unnecessary variable assignment. 2020-03-15 09:58:14 -07:00
Kenneth Hsu 7456d12dac Revert "Ensure that IndexVolumeWriter is disposed."
Since a reference to the IndexVolumeWriter is passed to the
FileEntryItem, we should not dispose of it here.

This reverts commit b6123cc156.

This is a potential fix for issue #4130.
2020-03-15 09:53:21 -07:00
Kenneth Hsu 13e1f0dac6 Remove unused Database members. 2020-03-14 16:45:08 -07:00
Kenneth Hsu 53730b3fc1 Remove comment disabling ReSharper warning.
This warning no longer applies.
2020-03-14 14:14:44 -07: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
warwickmmandGitHub c86ca0f38c Merge pull request #4127 from seantempleton/throttleconfusion
Fix bandwidth throttling inconsistency
2020-03-04 22:48:31 -08:00
Sean Templeton 9739517b0a Fix bandwidth throttling inconsistency
In code the throttling generally works backwards than what one would expect.
The streams that are throttled are the streams that operate on files from the local machine.
This fixes the download throttling not working and the upload throttling applying to
both uploads and downloads.

When doing a Put operation the stream on the local machine is reading from the
local filesystem and hence the upload throttle bytes per second needs to be
applied to the reading of the stream, not the writing.

Similarly when doing a Get operation the download throttle bytes per second needs
to be applied to the writing of the stream.

Fixes #4115
2020-03-04 19:57:48 -06:00
Sean Templeton d5e064ae45 Fix a few more issues with stop now
When a backup is interrupted it will now show as a partial backup in the list of backups on the restore files page.

Temporary filelist volumes are protected from deletion in several places. All but the RestoreHandler
only protect the most recent filelist. The RestoreHandler protects all temporary filelist volumes as the user
might be restoring from one that would be deleted.

Prevent the CoCoL BackendRequests channel is retired exception from appearing when the backup is stopped by checking
if the channel is retired before trying to add the FlushRequest to the channel. Any exceptions from the BackendUploader
task will still be thrown.
2020-03-01 21:19:07 -06:00
Sean Templeton 19010e6314 Fix unexpected difference in fileset when using Stop Now
The exception could occur due to the existing delete for FilesetEntry
deleting based on volume ids, which would only match a filelist.
The bsIdsSubQuery would return BlocksetIds that should
be deleted and would delete from the FileLookup table.

FilesetEntry would then have a higher count of rows
than what would be returned by the LEFT OUTER JOINS on all of the
other tables in VerifyConsistency() since more rows had been deleted
from FileLookup.

To fix this when rows are deleted in FileLookup, use the associated metadata id
to delete from FilesetEntry and other tables based on the blockset id for the
metadata id.

Some existing delete statements were moved, none were deleted.
The existing FileLookup delete had the match on metadata id removed as
a blockset id does not equal a metadata id.
2020-03-01 18:16:33 -06:00
warwickmmandGitHub b1d1972cb8 Merge pull request #4114 from seantempleton/syntheticfilelist
Fix issue with synthetic filelist not being uploaded
2020-03-01 12:39:08 -08:00
Kenneth Hsu bcabbe67c8 Fix detection of block devices.
This appears to have been a copy/paste error.

The UnixSupport.dll file was compiled in Release mode.
2020-03-01 12:11:16 -08:00
Kenneth Hsu 197a15e032 Fix log message for retried upload operations.
The number of attempts is one (the first attempt) plus the number of
retries.
2020-03-01 12:07:05 -08:00
Sean Templeton da08be84a6 Convert VolumeID to long instead of int 2020-02-29 16:43:10 -06:00
Kenneth SkovhedeandGitHub 17bcc0cddc Merge pull request #4112 from drwtsn32x/fix-issue-4090
Fix issue 4090 - Filter builder issues in web UI
2020-02-28 16:48:32 +01:00
warwickmmandGitHub f9227ed4a4 Merge pull request #4118 from drwtsn32x/log-usn-soft-failure-reason
Log additional info for USN soft failures
2020-02-25 21:00:34 -08:00
Rod Savard 1b0f5a8cb0 add descriptive reason for usn soft failure 2020-02-25 15:34:42 -08:00
Sean Templeton 446120ae3e A synthetic filelist could not be uploaded due to the logic in UploadSyntheticFilelist. The code passing in the fileset id to the class would get the id based on if the volume was in the Temporary or Uploading states. If the volume was in the Uploading state, present on the remote backend, and of the right size it would get changed to Uploaded.
One of the first things UploadSyntheticFilelist does is throw an exception if the volume is not in the Uploaded state. Or if it is in the Uploaded state, the next check would prevent a synthetic filelist from being created if the volume was not in the Uploading or Temporary states.

Removed the check for the volume not being in the Uploaded state as the warning in the second check handles that case.

Removed the using statement as it would dispose of the FilesetVolumeWriter after passing it to the UploadChannel. The UploadChannel could not use it since it had been disposed.

Fixed the GetRemoteVolumeFromIDAsync taking a fileset id and matching it up against a volume id. Now it will use fileset id to get the volume that matches the fileset.

Change the StopNow disruption test to not use a synthetic file list. The test was written with it not working and therefore fails a check on the number of filesets after stopping a backup.

Bonus fix for a possible null exception in Dispose for VolumeWriterBase.
2020-02-23 16:50:36 -06:00
Rod Savard ffdcc29c57 escape dirsep inside regexp 2020-02-23 08:37:42 -08:00
warwickmmandGitHub 94ea86b284 Merge pull request #4111 from warwickmm/fix_retention_logs
Fix logs for custom retention policy to show backup times
2020-02-18 18:58:55 -08:00
Kenneth Hsu 19303614f0 Remove unnecessary call to ToString. 2020-02-18 17:50:26 -08:00
Kenneth Hsu 7e86486f59 Fix logs for custom retention policy to show backup times.
When we modified the code in revision
68ffd86594 (pull request #4018) to
consider collections of IListResultFilesets instead of DateTimes, we
neglected to preserve the backup times in the logs.

This fixes #4109.
2020-02-18 17:50:13 -08:00
Kenneth Skovhede dbb6959594 Version bump to v2.0.5.103-2.0.5.103_canary_2020-02-18
You can download this build from:

Binaries: https://updates.duplicati.com/canary/duplicati-2.0.5.103_canary_2020-02-18.zip

Signature file: https://updates.duplicati.com/canary/duplicati-2.0.5.103_canary_2020-02-18.zip.sig

ASCII signature file: https://updates.duplicati.com/canary/duplicati-2.0.5.103_canary_2020-02-18.zip.sig.asc

MD5: 62749d18f50e905aea321bdaede30bc3

SHA1: 5ac0bac6cbf683ba6ad6ca5b6122f33fdac0700b

SHA256: d4741bf33d16e6b08bf952b2c46be44fc71230a67b38c285afd585e119401fb0
v2.0.5.103-2.0.5.103_canary_2020-02-18
2020-02-18 14:14:45 +01:00
Kenneth Skovhede 679981d29f Enable hardened runtime when building MacOS packages as it is now required. 2020-02-18 14:10:15 +01:00
Kenneth Skovhede ce7180d599 Version bump to v2.0.5.102-2.0.5.102_canary_2020-02-18
You can download this build from:

Binaries: https://updates.duplicati.com/canary/duplicati-2.0.5.102_canary_2020-02-18.zip

Signature file: https://updates.duplicati.com/canary/duplicati-2.0.5.102_canary_2020-02-18.zip.sig

ASCII signature file: https://updates.duplicati.com/canary/duplicati-2.0.5.102_canary_2020-02-18.zip.sig.asc

MD5: 76dcac7b13fda2b4fc5ff2987538ff3b

SHA1: 6f1640aa8517bf980c76b5467b901bf545d92a1c

SHA256: d782c13270581481ed3770516d79004c1aa5682fec6cf2f7378ae553dd03175b
v2.0.5.102-2.0.5.102_canary_2020-02-18
2020-02-18 13:33:25 +01:00
Kenneth SkovhedeandGitHub 8eb47ff67b Merge pull request #4107 from warwickmm/remove_unused_unittest_members
Remove unused members from UnitTest project
2020-02-18 12:20:25 +01:00
Kenneth SkovhedeandGitHub 386374a586 Merge pull request #4105 from warwickmm/fix_sqlite_interop_path
Fix path to SQLite.Interop.dll
2020-02-18 12:18:57 +01:00
Kenneth Hsu f0068456fd Disable warning about unused constructor.
This is used in the SVNCheckoutTests class.
2020-02-17 12:38:58 -08:00
Kenneth Hsu 89db40c211 Disable warning about unused constructor.
This is used in the SVNCheckoutTests class.
2020-02-17 12:38:38 -08:00
Kenneth Hsu 7cfed6a62b Remove unused LogHelper.Backupset property.
This property (and its backing field m_backupset) is only set and never
referenced.
2020-02-17 09:52:12 -08:00