Sean Templeton
3b6306b556
Fix exceptions caused by Stop Now
...
The LocalDatabase class was deleting from the BlocklistHash table based on the volume id of blocks. The deletes for the Blockset and BlocksetEntry tables were using a union query which included the same query the BlocklistHash delete was using. Changed the BlocklistHash delete query to use the union as well to ensure that all three tables would use the same query to delete the necessary rows. This fixes the "Detected non-empty blocksets with no associated blocks!" error.
Moved a write call in the DataBlockProcessor to send a volume for upload after setting blockvolume to null. This prevents a null reference exception because otherwise it would be sent to the SpillCollector and it tries to add a block, but the volume has already been closed.
Added the ? operator to the RegistryUtility class to prevent a null reference exception while debugging. It was annoying catching it in the debugger.
Fixes #4037
2020-01-05 21:43:56 -06:00
drwtsn32x
f4321ea115
fix typo
2020-01-01 16:50:34 -08:00
drwtsn32x
c50d07ec40
fix typo
2020-01-01 16:49:40 -08:00
drwtsn32x
e55d555558
Change case of recycle bins
2020-01-01 16:43:04 -08:00
drwtsn32x
559ab450a4
Improve Windows Temp filter
2020-01-01 16:40:10 -08:00
drwtsn32x
9cabdc51d0
Improve Windows Install filter
2020-01-01 16:25:22 -08:00
drwtsn32x
7e9eb58cdd
remove Temp from SystemFiles
2020-01-01 16:18:42 -08:00
drwtsn32x
e15b3a9278
add slash to 'usrclass'
2020-01-01 16:05:53 -08:00
drwtsn32x
54820bc192
remove duplicate 'ntuser' line
2020-01-01 16:02:57 -08:00
drwtsn32x
9b51773e6f
add recycle bin, change all to be off root of drive
2020-01-01 15:59:43 -08:00
drwtsn32x
dd7cc60e46
move '$Recycle.bin' to SystemFiles filter for consistency
2020-01-01 15:57:14 -08:00
drwtsn32x
a5439fd30f
remove 'Windows' duplicate
2020-01-01 15:54:57 -08:00
Max
7e2218663e
Add Compat Analyzers
2019-12-25 19:08:52 +01:00
Max
28793ef204
packages update
2019-12-25 18:21:24 +01:00
Max
41a5591532
upstream
2019-12-25 16:34:56 +01:00
Kenneth Hsu
83ac03843d
Fix spelling errors in comments.
...
In doing so, we also normalized some line endings.
2019-12-14 09:52:55 -08:00
drwtsn32x
942d8b820d
removed getter
2019-11-26 19:27:46 -08:00
drwtsn32x
77a1e3b88a
disable attribute masking
2019-11-22 08:00:58 -08:00
Kenneth Hsu
6c36a4bc93
Avoid possible invalid DateTimeOffset values.
...
When creating a new backup, a value of DateTime.MinValue can be provided
to the NormalizeDateTimeToEpochSeconds method. If DateTimeOffset is
used, it will convert the provided DateTime to the UTC equivalent, which
may result in a value outside of the allowable bounds.
This reverts the changes from pull request #3919 .
This fixes issue #3955 .
2019-10-23 19:49:36 -07:00
Kenneth Skovhede and GitHub
99d0cb3c57
Merge pull request #3953 from warwickmm/make_fields_readonly
...
Mark fields that don't need to be reassigned as readonly
2019-10-21 08:36:17 +02:00
Kenneth Hsu
2aa76881a5
Mark fields that don't need to be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu
afab61a05b
Use pattern matching to simplify casts.
2019-10-19 10:15:38 -07:00
Kenneth Hsu
9e465c602d
Fix invalid regex pattern.
...
This was introduced as part of revision b8199ad1c4 ("Fixed handling of
multi-byte characters in both HttpServer and Duplicati") to resolve
issues #1063 and #1085 . However, the regex pattern was invalid. This
reverts the pattern to the previous value, which seems more appropriate
since most non-standard encodings are of the form %uxxxx where xxxx is a
4 byte hex string representing a UTF-16 code.
This fixes issue #3737 .
2019-09-28 10:05:34 -07:00
Kyle Stanfield
7dffbaf800
Changed NormalizeDateTimeToEpochSeconds to use ToUnixTimeSeconds
2019-09-20 19:08:26 -07:00
Kenneth Skovhede and GitHub
d5b77ebb61
Fixed incorrect escaping of pipe characters
2019-09-19 22:09:50 +02:00
Kenneth Skovhede and GitHub
5664686cc2
Merge pull request #3830 from BlueBlock/gpg-update
...
Update GPG library and path method
2019-09-17 09:53:46 +02:00
Kenneth Hsu
e64d6a6216
Remove unused output parameter.
...
This will avoid potential confusion as the provided byte[] array is
itself being modified.
2019-09-14 18:46:06 -07:00
BlueBlock
7e8c6b22ba
Merge remote-tracking branch 'upstream/master' into gpg-update
2019-09-11 12:03:44 -04:00
BlueBlock
1c28cf0b15
refactor AutoUpdater to an exe and a library
2019-09-06 16:57:44 -04:00
Max
62d64c3ab0
upstream
2019-09-05 15:34:09 +02:00
Kenneth Skovhede and GitHub
bb6c8cc558
Merge pull request #3880 from warwickmm/refactor/consolidate_datetime_methods
...
Consolidate duplicated DateTime utility methods
2019-09-03 22:57:10 +02:00
BlueBlock
4b6f7a906f
upgrade missing references
2019-09-03 13:52:55 -04:00
BlueBlock
eff5b79fd8
Merge remote-tracking branch 'upstream/master' into gpg-update
2019-09-02 09:04:07 -04:00
Kenneth Hsu
53befa36fc
Fix XML documentation.
2019-09-01 12:38:23 -07:00
Kenneth Hsu
0a390bd31a
Move NormalizeDateTimeToEpochSeconds method to Utility class.
2019-09-01 12:38:23 -07:00
Kenneth Hsu
40cae529e6
Move NormalizeDateTime method to Utility class.
2019-09-01 12:38:23 -07:00
BlueBlock
6a9f605e43
Merge remote-tracking branch 'upstream/master' into gpg-update
2019-08-31 19:01:57 -04:00
BlueBlock
b3ef2eaa08
Merge remote-tracking branch 'upstream/master' into fix-tempfile-deletion
2019-08-31 18:56:27 -04:00
warwickmm and GitHub
d88d1b6800
Merge pull request #3877 from BlueBlock/fix-tempfile-deletion-inrelease
...
Fix tempfile date comparison to use UTC
2019-08-31 15:24:40 -07:00
BlueBlock
002eda0c40
Merge remote-tracking branch 'upstream/master' into gpg-update
2019-08-31 14:13:36 -04:00
BlueBlock
e110f6c64c
Merge remote-tracking branch 'upstream/master' into update-framework-to-462
2019-08-31 14:11:32 -04:00
BlueBlock
15991b022b
Merge remote-tracking branch 'upstream/master' into fix-tempfile-deletion-inrelease
2019-08-31 14:11:05 -04:00
BlueBlock
890162f5ad
Merge remote-tracking branch 'upstream/master' into fix-tempfile-deletion
2019-08-31 14:10:24 -04:00
BlueBlock
26a22dd3f8
when debug, find temp file names of "Duplicati*" with min age 3 hours
...
temp files older than 3 hours will be deleted
2019-08-31 13:24:21 -04:00
BlueBlock
fecd7a580f
fix date comparison so both use UTC
...
otherwise it is hours off
2019-08-31 13:20:52 -04:00
BlueBlock
428b568bd3
add braces, simplify delegate call
2019-08-31 12:39:09 -04:00
BlueBlock
53aafebfd3
fix date compare so both use UTC
...
othewise it is currently a number of hours off
2019-08-31 12:38:16 -04:00
BlueBlock
06d1cfb62f
remove unused method
2019-08-31 12:36:26 -04:00
BlueBlock
33b63cfc53
Update ReadLimitLengthStream.cs
...
use empty method for flush
2019-08-29 06:26:57 -04:00
BlueBlock
42342f30be
move new stream to Utility
2019-08-27 23:48:07 -04:00