Kenneth Hsu
a7d15332b6
Ensure that hostname comparisons are not case sensitive.
...
By definition, hostnames should not be case sensitive:
https://tools.ietf.org/html/rfc4343
This fixes issue #4167 .
2020-04-10 14:38:27 -07:00
Rod Savard
f1e4ae884a
adjust logic to support both dirseps, add comments
2020-03-30 17:15:03 -07:00
Rod Savard
7a4d90f4af
check both path separators
2020-03-29 19:32:52 -07:00
Rod Savard
57e0323d61
sort restore list too
2020-03-29 09:18:27 -07:00
Rod Savard
1ccc407a44
simplify ordering operation
2020-03-29 09:17:40 -07:00
Rod Savard
85453b0f9e
sort files
2020-03-28 09:21:35 -07:00
Kenneth Hsu
3551238000
Remove redundant calls to String.Format.
2020-01-25 17:07:02 -08: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
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
BlueBlock
29a1a7c618
fix stop after the current file
...
'stop after upload' is now
stop after the current file' and the operation will cleanly allow the current file to complete.
2019-07-23 10:35:33 -04:00
drwtsn32x
a9fbf845a6
Add Vacuum command to API
2019-05-11 08:45:55 -07:00
Kenneth Skovhede and GitHub
83bb725dc6
Merge pull request #3740 from warwickmm/remove_unused_local_variables
...
Remove unused local variables
2019-04-25 13:22:39 +02:00
Kenneth Hsu
457254d9e1
Remove unused local variables.
2019-04-17 20:10:53 -07:00
Kenneth Hsu
03b08d7ae3
Write unwrapped exception message to JSON.
...
While the original intent was likely to write a more meaningful message
to JSON, the previous implementation unwrapped the
TargetInvocationException but neglected to use the unwrapped Exception.
2019-04-14 10:03:08 -07:00
William Osler
0e3a291c74
Tweak captcha generation code
...
Introduces a few changes to the code to generate captchas. Font size
calculations are now done in pixels for consistency, and the width of
the image is estimated from the width of the text being printed. Also
fixes #2965 .
2019-04-10 18:46:19 -07:00
Kenneth Skovhede and GitHub
57b28182cb
Merge pull request #3684 from seantempleton/parallelupload
...
Implement parallel uploads to a single backend
2019-03-19 08:41:33 +01:00
Sean Templeton
b02b19e683
Change Put method name to PutAsync
2019-03-17 18:28:45 -05:00
Sean Templeton
0c122ff550
Change IBackend and IStreamingBackend to return Task for Put()
2019-03-03 21:43:10 -06:00
verhoek
91502ed88b
Null propagation.
2019-02-25 11:35:43 +01:00
Kenneth Skovhede and GitHub
1980acf69d
Merge pull request #3629 from duplicati/feature/fix_commandline_log_errors
...
Fixes to reduce the number of problems happening with the commandline UI
2019-01-26 13:56:48 +01:00
Kenneth Skovhede
3cace9cd81
Changed the commandline log expiration to allow long-running jobs with no output (up to 24h between output).
...
Made the logger slightly more robust in case of failures.
2019-01-25 10:31:26 +01:00
Kenneth Hsu
c79fbf5265
Dispose of connection after use.
2019-01-22 17:37:55 -08:00
Kenneth Hsu
f29a3ff2bf
Extract code that exports backup to JSON to helper method.
...
This will make it easier to test the import/export process.
2019-01-17 18:21:05 -08:00
Kenneth Hsu
c51c068ed9
Restrict method access.
2019-01-15 19:37:19 -08:00
Kenneth Hsu
3ff485c0c1
Extract code that imports backup to separate method.
...
This reduces the amount of logic in the ConfigurationImporter program
and will allow us to write tests to verify its behavior.
2019-01-15 19:26:47 -08:00
Kenneth Hsu
fecde4f992
Add command-line program to import backup configurations.
...
This concerns issue #2693 .
2019-01-10 21:43:30 -08:00
Kenneth Hsu
fc59e5bede
Extract loading of configuration file to helper method.
2019-01-10 21:28:42 -08:00
Kenneth Hsu
b7f28aa9f9
Remove empty finally blocks.
...
Empty finally blocks serve no purpose. In cases where no exceptions are
caught, we removed the try as well.
2018-12-31 14:00:43 -08:00
Kenneth Hsu
8dd3aeaf26
Use invariant culture in calls to ToLower and ToUpper.
2018-12-11 21:21:07 -08:00
verhoek
ed27eb52ad
Suppress passphrase input on restore when backup set was unencrypted.
2018-11-21 09:55:56 +01:00
verhoek
f7800e8a2b
Functionality for backend to retrieve passphrase adhoc on restore, which
...
is convenient for asymmetric gpg encryption.
2018-11-20 21:12:46 +01:00
verhoek
1f8c7fab87
Misc refactoring.
2018-11-20 12:57:31 +01:00
Kenneth Skovhede and GitHub
26c4e549fa
Merge pull request #3467 from Pectojin/export_passwords
...
added checkbox to allow exporting backup passwords
2018-11-12 13:23:34 +01:00
Rune Henriksen
c41f2c6a60
moved all sanitization logic into backup class and moved from regex to using internal Uri library
2018-11-08 20:00:51 +01:00
Rune Henriksen
a7909c421c
url sanitization to strip tokens and passwords
2018-11-04 22:07:24 +01:00
Rune Henriksen
7ff0e90888
pleasing Codacy
2018-11-03 18:16:34 +01:00
Rune Henriksen
0e9348b2ed
added checkbox to allow exporting backup passwords
2018-11-03 17:53:18 +01:00
verhoek
ab12be6bbd
Renamed IsClientLinux to IsClientPosix .
2018-11-03 09:26:04 +01:00
verhoek
8bb406cd15
Migrated to use the platform class.
2018-11-02 22:17:16 +01:00
verhoek
b2cc18426c
Renamed Library.IO to Library.Common.IO.
...
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek
1275f14405
Replaced DirectorySeparatorChar.ToString() calls.
2018-11-02 17:45:00 +01:00
verhoek
71c6aca8a7
Fixed IO calls in Filebackend.
...
Moved FileEntry to Library.IO due to AlphaFS not implementing
System.IO.FileInfo/DirectoryInfo.
2018-11-01 17:56:48 +01:00
verhoek
d6cff69d96
Added import.
2018-10-28 12:16:34 +01:00
verhoek
52916b935b
Replaced System.IO.Path with wrapper call to Alphaleonis.
2018-10-28 12:08:09 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
verhoek
40dc6da81d
Created separate package for io wrapper.
2018-10-25 20:01:55 +02:00
Mikael Mello
608e4e7972
Fix error when trying to add items to empty HttpForm (that is an empty HttpInput)
2018-10-11 09:30:28 -03:00
Rune Henriksen and GitHub
be7edb580d
Merge pull request #3410 from warwickmm/simplify_enumerating_collections
...
Simplify enumeration of collections
2018-10-07 19:06:28 +02:00