Commit Graph
22 Commits
Author SHA1 Message Date
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Kenneth Hsu c79fbf5265 Dispose of connection after use. 2019-01-22 17:37:55 -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
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
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
Kenneth Hsu 1605dc8ede Use utility method to read from stream. 2018-06-06 19:54:45 -07:00
Kenneth Skovhede d97484dfc2 Fixed a few minor issues with importing backup configurations 2018-04-23 09:15:43 +02:00
Rune Henriksen 8c6cfdff97 updated http status codes on many ReportClientError calls to explicitly state what is wrong 2018-02-25 15:05:23 +01:00
Pectojin fcedd9746d added backend code to support stripping metadata from imported backup configs 2018-01-28 01:41:15 +01: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 8ed8919379 Fixed importing config files with AllowedDays set.
This fixes #2380.
2017-03-22 23:27:24 +01:00
Kenneth Skovhede e333c14236 Changed the import functionality to load the imported backup into the "Add" view, such that it can be changed before being imported.
Also added support for restoring from an exported configuration file, by loading the values into the restore-direct view.
This adds support for importing a configuration file stored on a remote destination as mentioned in #2282.
This fixes #2321
This fixes #1311
2017-02-27 00:03:46 +01:00
Kenneth Skovhede 71933b2674 Added serverside validation of backups on save/update 2016-10-14 00:15:49 +02:00
Kenneth Skovhede 73ddca0907 Various bug-fixes for the REST API + a new cache for querying completed task status 2015-10-04 17:14:51 +02:00
Kenneth Skovhede 0bfe3daac4 Fixed issues with the REST interface 2015-08-26 12:38:27 +01:00
Kenneth Skovhede 6dac0f3c2e Fixed an invalid line-ending character 2015-08-05 13:51:56 +02:00
Kenneth Skovhede 1f35824317 Converted to REST based API, with a wrapper layer for control.cgi so the current UI still works. 2015-07-30 14:31:27 +02:00
Kenneth Skovhede 9b51072ee9 Work on a REST API for the server 2015-07-04 13:42:52 +02:00