Commit Graph
119 Commits
Author SHA1 Message Date
TopperDEL 547d883aab Add additional references, small corrections 2020-05-01 21:37:27 +02: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 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
Kenneth Hsu 457254d9e1 Remove unused local variables. 2019-04-17 20:10:53 -07:00
verhoek f7ccb75e13 Minor refactoring. 2019-02-25 11:35:43 +01:00
verhoek 8330d7bdb9 Call GenerateWebserverPasswordTrayIcon from one place only. 2019-02-25 11:35:43 +01:00
verhoek 3ad8c73f0f renaming of instance members. 2019-02-25 11:35:43 +01:00
verhoek d5df210834 Minor changes in server settings class. 2019-02-25 11:35:43 +01:00
Kenneth Hsu b5d9451b33 Remove redundant casts. 2019-01-21 19:30:52 -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
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 0ee90d3b4e In between auto refactoring. 2018-11-20 20:08:39 +01:00
verhoek 1f8c7fab87 Misc refactoring. 2018-11-20 12:57:31 +01:00
verhoek b6c8c5b5b8 Removed unnecessary requirement of passphrase for asymmetric GPG encryption. 2018-11-19 17:27:11 +01:00
Kenneth SkovhedeandGitHub 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 ee7a5cad50 trailing comma for consistency 2018-11-10 17:01:16 +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 919eea59fc fixed sia and trailing ? regex 2018-11-06 23:44:36 +01:00
Rune Henriksen 38513da342 added filter for sia password 2018-11-04 23:13:47 +01:00
Rune Henriksen a7909c421c url sanitization to strip tokens and passwords 2018-11-04 22:07:24 +01:00
verhoek 8bb406cd15 Migrated to use the platform class. 2018-11-02 22:17:16 +01:00
Kenneth Skovhede c45030474f Changed the database scheme to be consistent with the upgrade, addition to #3391 2018-10-23 11:42:52 +02:00
Mikael Mello 91bdf4be63 Make description an optional field for backups
Checks whether it has been set and acts accordingly to avoid exceptions

Update migration to initialize all existent rows to Description=''.

Note that after some research, default values for TEXT columns were not
supported by MySQL a few years ago, however Duplicati uses SQLite
which seems to fully support this feature. If not, a workaround is to use:

ALTER TABLE "Backup" ADD COLUMN "Description" TEXT NULL;
UPDATE "Backup" SET "Description"='' WHERE "Description" IS NULL;
ALTER TABLE "Backup" ALTER COLUMN "Description" TEXT NOT NULL;
2018-10-17 09:02:39 -03:00
Kenneth Hsu 9e0b031fee Remove unused members. 2018-10-15 21:20:30 -07:00
Kenneth Hsu 0c1ac9c489 Replace chained LINQ calls with call to overload with predicate.
This simplifies the code by reducing the number of enumerators created
while also making the code slightly more readable.
2018-10-06 16:20:18 -07:00
sffetlio e933d806b4 Fix schema version 2018-10-01 11:52:16 +03:00
sffetlio 70febafc2b Add Description field to backups 2018-09-20 14:46:32 +03:00
Kenneth Skovhede 9ba03a3358 Added option to limit the number of allowed hostnames for the webserver 2018-08-07 00:36:12 +02:00
Kenneth Skovhede 4762a35ae3 Added option to disable automatic tray-icon login. 2018-06-15 14:35:35 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Hsu e6587a2c6f Fix retrieval of HAS_FIXED_INVALID_BACKUPID setting.
The previous implementation returned false for null or empty or
whitespace values, and true for unparsable values.  A default value of
false seems more appropriate for these cases.
2018-04-12 19:19:32 -07:00
Kenneth Hsu c15e4b17b6 Fix retrieval of SERVER_PORT_CHANGED setting.
The previous implementation returned true for null, empty or whitespace,
or unparsable values.  A default value of false seems more appropriate
for this setting.

Since the ServerSettings constructor initializes the m_values Dictionary
with keys from the CONST class, we can assume that the
SERVER_PORT_CHANGED key exists.
2018-04-08 19:36:41 -07:00
Kenneth Hsu b50b02a59b Fix retrieval of UNACKED_ERROR and UNACKED_WARNING settings.
The previous implementation returned true for null, empty or whitespace,
or unparsable values.  A default value of false seems more appropriate
for these settings.  In particular, if no warning or error has occurred
yet (e.g., upon first installation), these properties should return
false.

This addresses issue #3126.
2018-04-08 19:36:41 -07:00
Kenneth Hsu 6953ffe710 Simplify retrieval of HAS_ASKED_FOR_PASSWORD_PROTECTION setting.
The previous implementation:

	1. Assumes that the relevant key exists in the Dictionary.
 	2. Returns true if the value is null, empty or whitespace, or
	   unparsable.  Otherwise, it returns the parsed value.

 This simplifies the code while capturing the same logic.
2018-04-08 19:36:41 -07:00
Kenneth Hsu 7c55df81e2 Simplify retrieval of IS_FIRST_RUN setting.
The previous implementation:

	1. Assumes that the relevant key exists in the Dictionary.
	2. Returns true if the value is null, empty or whitespace, or
	   unparsable.  Otherwise, it returns the parsed value.

This simplifies the code while capturing the same logic.
2018-04-08 19:36:41 -07:00
Kenneth Skovhede e124329f1e Merge branch 'feature/improved-logging' 2018-03-16 08:38:14 +01:00
Kenneth Skovhede 842fd96543 Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Kenneth Hsu 1f8b542604 Use nameof operator when constructing ArgumentNullException.
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Pectojin 15284ce445 Altered the DeleteFromDb() method so that it can be used to delete rows defined by arbitrary identifiers. Added overloaded function that turns legacy calls to DeleteFromDb() into calls to the new DeleteFromDb() method 2018-02-01 20:12:10 +01:00
Pectojin b68dda3d59 Added calls to clean up dependency tables when a backup is deleted 2018-02-01 20:12:04 +01:00
Kenneth SkovhedeandGitHub 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
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede cae0fb7b9e Added nag dialog for first launch asking to set a password on multi-user machines. 2017-08-24 13:55:29 +02:00
Dan Stahr 58a95e03e6 Autovacuum option added 2017-08-04 12:09:01 +01:00
Kenneth Skovhede 5cea95bb54 Merge branch 'tray_readpassword' of https://github.com/mnaiman/duplicati into tray_readpassword
# Conflicts:
#	Duplicati/Server/Database/ServerSettings.cs
2017-06-21 08:43:04 +02:00
Kenneth Skovhede da0de9983b Implemented the live throttle control.
This fixes #1730
This fixes #1261
2017-06-20 13:00:52 +02:00