Kenneth Skovhede
486ea11fbd
Fixed a case where the commandline arguments were not correctly escaped.
...
This fixes #2907
2017-12-20 22:45:44 +01:00
Kenneth Hsu
bbebcdf3c9
Use method to parse string into bool to reduce duplication.
2017-12-17 14:52:29 -08:00
Kenneth Hsu
788a1db877
Add overload for method that parses string into bool.
...
This is useful for cases where the default value is expensive to
compute. By specifying the default via a delegate, it is not computed
unless it is needed.
2017-12-17 14:52:29 -08:00
Kenneth Hsu
aac3bc5d87
Remove invalid XML documentation element for void method.
2017-12-09 18:42:33 -08:00
Kenneth Hsu
ab489d9a28
Make parameter names in XML documentation match code.
2017-12-09 18:42:30 -08:00
Kenneth Hsu
1c7391399d
Remove XML documentation for unmatched parameters.
2017-12-09 18:30:01 -08:00
Kenneth Skovhede and GitHub
36aadc4ad1
Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
...
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu
5fb1958ceb
Remove redundant calls to ToString.
2017-11-26 15:44:34 -08:00
Kenneth Hsu
8810e0130d
Make string comparisons use ordinal (binary) sort rules.
...
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Skovhede
b42ab42e57
Fixed the updater to use the argument escaping code from utilities.
...
This fixes #2891
2017-11-22 10:39:02 +01:00
Kenneth Skovhede
6564220df0
Implemented a utility method for escaping commandline arguments
2017-11-21 23:41:02 +01:00
Kenneth Skovhede
e1a0ca06d5
Change .rbf filter to only exclude .rbf files in the config.msi subfolder.
...
This fixes #2886
2017-11-21 13:52:56 +01:00
Kenneth Skovhede
4ff446d521
Merge branch 'master' of github.com:duplicati/duplicati
2017-11-21 13:50:44 +01:00
Kenneth Skovhede
4fd9e41703
Added some documentation strings and a missing "else" that was causing a crash.
...
This fixes #2858
2017-11-19 17:48:39 +01:00
Kenneth Skovhede and GitHub
c115d07f83
Merge pull request #2836 from warwickmm/feature/no_tilde_expansion
...
Avoid performing tilde expansion
2017-11-18 23:06:54 +01:00
Tyler Gill
ae1f69b5e8
Only try to load Windows registry filters on Windows.
...
The reason for this is that Windows filters may be used on other systems (e.g., to ignore Windows files when backing up a Windows drive)
2017-11-15 20:56:24 -08:00
Kenneth Skovhede
6255572c25
Added a timestamp value to the end of dates in the report output for easier parsing.
2017-11-08 22:18:25 +01:00
Kenneth Skovhede
cec0fca522
Merge branch 'feature/use-windows-exclude-paths'
2017-11-01 08:54:44 +01:00
Kenneth Skovhede
2ff3fa6a8d
Added support for reading the list of folder/file exclusion from the Windows registry
2017-10-31 10:57:37 +01:00
Kenneth Skovhede
f20ceab9e5
Added flags option to the enum for good measure
2017-10-31 10:56:21 +01:00
Kenneth Skovhede
09ca51bdd9
Fixed reporting the time values in the local timezone
2017-10-31 10:55:35 +01:00
Kenneth Hsu
c9aa6cf5fb
Avoid performing tilde expansion.
...
The expansion being performed was often incorrect, as it's possible for
the tilde character to appear as part of the path where it should not be
expanded to the user's home directory.
Properly supporting tilde expansion is complicated and requires
additional study. Instead of supporting it only partially, we have
decided to simplify things and just drop tilde expansion for now. See
the discussion in issue #2619 , as well as issues #2325 and #2555 .
2017-10-21 10:08:33 -07:00
Kenneth Hsu
9c1e55f241
Expose field that represents users's home directory.
...
We will be removing support for tilde expansion, and this field can be
used instead of ~ internally in the code.
2017-10-21 09:40:18 -07:00
Kenneth Hsu
3d51e9153b
Avoid signing assemblies.
...
Using strong-named assemblies can cause difficulties with the GNU LGPL
license, which allows for one to recombine or relink their application
with modified versions of the code. While one solution is to share the
private key so that people can sign the assemblies themselves, this
would break the trust that is expected from signed assemblies. For now,
the easiest fix is to simply not sign the assemblies. Note that by
doing so, we prevent the code from being referenced from other signed
assemblies.
This also fixes an issue introduced in revision ba94d36a80 ("Added
auto-update for WindowsService and Service."), where the WindowsService
project (signed) referenced the AutoUpdater project (not signed).
We also removed instances of <SignAssembly>false</SignAssembly> to be
consistent with newly created .csproj files that do not contain the
SignAssembly element.
This was motivated by the discussion in issue #2814 .
2017-10-15 22:00:23 -07:00
Kenneth Hsu
12ca6d320d
Add exception message.
2017-10-14 11:54:39 -07:00
Kenneth Hsu
07bfc4a5da
Use nameof operator instead of string literal.
2017-10-14 11:43:31 -07:00
Kenneth Skovhede
58065c9972
Updated FasterHashing. This enables automatic loading of OpenSSL on Linux and Windows using the most common names for OpenSSL libraries without needing a <dllmap> hack.
2017-10-13 11:53:14 +02:00
Kenneth Skovhede
7ccd05348e
Added support for reading the power supply state on MacOS
2017-10-11 21:48:31 +02:00
Kenneth Skovhede
78c5bdac0c
Updated FasterHashing
2017-10-10 13:47:31 +02:00
Tyler Gill
b0887af743
Fix a few default filters.
2017-10-05 22:47:55 -06:00
Kenneth Skovhede and GitHub
5a911bfb13
Merge pull request #2785 from warwickmm/feature/detect_power_supply
...
Add preliminary support for detecting power supply source
2017-10-04 15:04:59 +02:00
Kenneth Hsu
8573ab2cd3
Add ability to detect power supply source on Windows.
2017-10-03 18:53:28 -07:00
Kenneth Hsu
5708d5aa3d
Add method to get current power source.
2017-10-01 19:50:55 -07:00
Kenneth Hsu
9ab76dddc7
Add Linux power supply state.
2017-10-01 19:50:55 -07:00
Kenneth Hsu
4403e8cd5c
Add default power supply state.
...
By default, we will always claim to be on AC so that no backups are
missed.
2017-10-01 19:50:55 -07:00
Kenneth Hsu
be34b62668
Add interface for power supply status.
2017-10-01 19:31:07 -07:00
Kenneth Hsu
b49023376a
Add enumeration for power supply types.
2017-10-01 19:18:21 -07:00
Kenneth Hsu
4b5ecedc31
Allow custom equality comparer when obtaining unique items.
2017-09-28 21:30:29 -07:00
Kenneth Hsu
f2699e01dc
Add method to get unique items from a collection.
...
For cases where we want both the unique items as well as the duplicates,
this should be more performant than using LINQ.
2017-09-28 21:30:29 -07:00
Kenneth Skovhede
7ed1362e4c
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
2017-09-27 09:58:29 +02:00
Kenneth Skovhede and GitHub
a3270e4323
Merge pull request #2762 from warwickmm/improve_argument_exceptions
...
Improve construction of ArgumentExceptions
2017-09-26 15:42:07 +02:00
Kenneth Skovhede
9c0c5fbb97
Merge branch 'master' into concurrent_processing
2017-09-26 14:26:09 +02:00
Kenneth Skovhede
d15c0656cb
Updated FasterHashing
2017-09-26 13:09:21 +02:00
Kenneth Hsu
fe9c760ff1
Avoid using parameter name in exception message.
...
The parameter name is provided as a separate argument to
ArgumentException.
2017-09-25 19:56:28 -07:00
Kenneth Hsu
b84e7bd34d
Avoid hard-coded parameter names.
...
This makes it easier to rename the parameter in the future as we don't
have to search for the parameter name within strings.
2017-09-25 19:54:54 -07:00
Kenneth Hsu
239e62cb91
Fix argument order for ArgumentException.
2017-09-25 19:40:39 -07:00
Kenneth Skovhede
31e8d7eb14
Updated FasterHashing library
2017-09-25 15:39:33 +02:00
Kenneth Skovhede
01c429b176
Switched hash library to use FasterHashing
2017-09-23 00:13:03 +02:00
Kenneth Skovhede
683b04741d
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# Duplicati/Library/Main/Operation/BackupHandler.cs
Manually fixed the HashAlgorithmHelper case
2017-09-20 13:56:37 +02:00
Kenneth Skovhede
b80d0c5279
Bugfix for --accept-any-ssl-certificate.
...
It turns out that the `ServicePointManager` does not carry the call context when executing the request.
The workaround for now is to look at all registered validators and use them all combined when using custom SSL certificate validation.
2017-09-20 12:11:30 +02:00