Commit Graph
44 Commits
Author SHA1 Message Date
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Kenneth Hsu e59e9a42b8 Extract removal of passwords to method.
This makes it easier to create a simple test for the behavior.
2020-08-24 07:41:00 -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
drwtsn32x a9fbf845a6 Add Vacuum command to API 2019-05-11 08:45:55 -07:00
verhoek 91502ed88b Null propagation. 2019-02-25 11:35:43 +01: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 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
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
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
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
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
Rune Henriksen 7975a9ad8c delete on unknown backup id should return 404 2018-02-18 03:29:27 +01:00
Pectojin f6242e3774 Added an overloaded AddTask method that allows tasks to skip the queue and updated the api call backup/<id>/run to skip the queue to correspond with the expectation of the 'Run now' button in the UI 2018-02-03 04:17:10 +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 8e9acddab8 Work on commandline 2017-03-29 09:53:28 +02:00
Kenneth Skovhede 7f4c9383c3 Merge branch 'feature/set_tempdir_for_sqlite' 2017-01-25 21:16:45 +01:00
Kenneth Skovhede 1424be05f9 Fixed a bunch of typos.
This fixes #2278.
2017-01-23 22:12:24 +01:00
Kenneth Skovhede 3b4cd3c9c2 Experiment to set the SQLite temp folder, both through the environment variable and the deprecated pragma statement 2017-01-15 23:09:47 +01:00
Kenneth Skovhede 9a849a2b58 Improved support for cross-os restores.
This fixes #1302
This fixes #1983
2017-01-06 23:01:54 +01:00
Kenneth Skovhede bff1fbc48b Fixed an issue where the "delete remote files" option was not honored.
This fixes #2147
2016-12-01 23:05:53 +01:00
Kenneth Skovhede 857c25d3e8 Fixed only checking for captcha when deleting remote files.
This fixes #2023
2016-10-17 18:15:40 +02:00
Kenneth Skovhede 71933b2674 Added serverside validation of backups on save/update 2016-10-14 00:15:49 +02:00
Kenneth SkovhedeandGitHub 17e2a3dab4 Feature/add delete dialog (#2008)
Added a delete page with options to delete the local database, as well as the remote files.
Added a captcha to protect against automated attacks that would attempt to delete the remote files.

This fixes #1201
2016-10-13 21:45:31 +02:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
4m1g0 4456adc433 Fix restore remote backup, bug introduced in: 6096d8379b 2016-09-12 13:36:08 +02:00
Kenneth Skovhede 5e90086af9 Merge branch 'feature/fix_plussigns_in_path_from_ui' 2016-09-01 11:38:54 +02:00
Kenneth Skovhede 6096d8379b Sending list of paths to restore as a JSON array from UI.
This fixes #1908
2016-08-31 19:37:38 +02:00
Kenneth Skovhede ed43742c2f Removed double un-escaping of the paths sent from the webui.
This fixes #1878
2016-08-31 17:34:13 +02:00
Kenneth Skovhede e15d41654e Added compact feature to the UI.
This fixes #1867
2016-08-04 14:31:49 +02:00
Kenneth Skovhede 38ef186201 Implemented error message if user attempts to restore from an encrypted store without a passphrase. 2016-02-10 17:18:48 +01:00
Kenneth Skovhede 6e409387c9 Fixed issue with path filters being distorted on Windows 2016-02-10 16:37:10 +01:00
Kenneth Skovhede 768896c35d Correctly url decoding the incoming path when listing files for the restore dialog.
This should fix issue #1465.
2015-12-26 22:42:07 +01:00
Kenneth Skovhede bcf9985ee8 Added web-interface support for changing the local database for a backup 2015-12-08 20:42:53 +01:00
Kenneth Skovhede 50cd64f3a3 Minor consistency fixes to the rest api error reporting 2015-12-03 21:57:08 +01: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