Commit Graph
175 Commits
Author SHA1 Message Date
verhoek 92777a168b Removed unused imports. 2018-05-16 21:46:42 +02:00
verhoek abf937249f Corrected spelling of comparision in server.cs release mode. 2018-05-16 21:40:27 +02:00
Kenneth Hsu c184b1871d Remove unused lock object.
The Dictionary used to cache the authenticated logins was made
thread-safe in revision 2653791227 ("Use thread-safe collection in
SynologyAuthenticationHandler").
2018-05-11 22:00:29 -07:00
Kenneth Hsu 2653791227 Use thread-safe collection in SynologyAuthenticationHandler.
Since the SynologyAuthenticationHandler class inherits from HttpModule,
we should ensure that access to its internal collections are
thread-safe.
2018-05-11 21:57:58 -07:00
Kenneth Skovhede d97484dfc2 Fixed a few minor issues with importing backup configurations 2018-04-23 09:15:43 +02:00
Kenneth Hsu c00c6fd19b Make fields containing lock objects readonly.
If one of these fields is accidentally reassigned, it's possible for
threads to be oblivious to an existing lock.  By making the fields
readonly, we will be notified at compile-time if we inadvertently
redefine one of these fields.
2018-03-17 19:59:23 -07:00
Kenneth SkovhedeandGitHub 4f5d09f93d Merge pull request #3096 from Pectojin/system_info_add_username_and_startedby_variables
added 'UserName' and 'StartedBy' variables to the system info page
2018-03-16 08:41:55 +01: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
Rune Henriksen f414b2fdf2 added 'UserName' and 'StartedBy' variables to the system info page to help troubleshooting 2018-03-09 21:24:57 +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
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 843b3e4eb2 Made the LogData poll API respect pagesize. Defaults to 100 if no pagesize is provided 2018-02-20 21:55:06 +01:00
Rune Henriksen e1fc8f25aa added clarification to error to help users resolve the problem 2018-02-19 22:13:25 +01:00
Rune Henriksen 7975a9ad8c delete on unknown backup id should return 404 2018-02-18 03:29:27 +01:00
Kenneth Skovhede 8ee38994b1 Merge branch 'master' of github.com:duplicati/duplicati 2018-02-08 21:39:35 +01:00
Kenneth Skovhede d16c0f24ec Removed some unnecessary changes, turned out it was a simple cache issue.
This fixes #2699
This fixes #2635
2018-02-08 09:03:51 +01:00
Kenneth Skovhede 9a41cf2867 Fixed not allowing the browser to cache the index.html page.
This should fix #2699, #2635
2018-02-07 23:37:55 +01:00
Kenneth Skovhede 58146af6b7 Changed XSRF tokens to only use url-safe chars, as the webserver and browsers fight a bit with it. 2018-02-07 23:35:13 +01:00
Kenneth Skovhede 1241a7747d Added cache expiration headers to static and dynamic responses from the server.
This should help with #2699
2018-02-07 21:56:02 +01:00
Tyler Gill 42a06ce4fd Merge branch 'master' of https://github.com/duplicati/duplicati into fix/reparse-points-arent-symlinks 2018-02-07 10:00:09 -07:00
Tyler Gill 08e0708a95 Change Duplicati's handling of reparse points, so that not all reparse points are treated as symlinks.
This is inspired largely by the new (/ returning) feature of OneDrive in Windows 10 Fall Creator's Update, which downloads files on-demand.
A side effect of that change is that the OneDrive folder (and subfolders of it) are marked as reparse points, even though they are not technically standard symlinks.
With this change, a new extension method IsSymlink is added for ISnapshotService and ISystemIO, which checks both the file attributes (for reparse point) and the symlink target path (if null, the path is not treated as a symlink).
All places that previously checked only the file attributes have been updated to use either this method (or at least the same logic, in the case of the core BackupHandler file check).
One side effect of this change is that '--symlink-policy=store' no longer ignores empty symlinks - they are now treated as regular files.
If there are empty symlinks, they will now be backed up as if they were regular files, but I don't know what the conditions are that create symlinks like that, so this might not effect anything in practice.
2018-02-06 13:24:49 -07: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
Pectojin fcedd9746d added backend code to support stripping metadata from imported backup configs 2018-01-28 01:41:15 +01:00
vnau 9b9d9b1297 Fixed compiler warnings. 2017-12-17 01:34:21 +07: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 4e5fb1aaa6 Also allow "all" as the interface.
This fixes #2706
2017-09-15 08:49:33 +02:00
Kenneth Skovhede 36cccd9776 Merge branch 'feature/synology_ngix_proxy' 2017-07-03 23:23:39 +02:00
Kenneth Skovhede d57215aaef Switched to using nginx based proxy instead of the slow CGI proxy on Synology 2017-07-03 00:52:40 +02:00
MaxandGitHub b620f5b708 Merge pull request #30 from duplicati/master
upstream
2017-06-28 23:52:23 +02:00
Max 21a09a238b refactor 2017-06-28 23:45:56 +02: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
Max a9d7507597 tray icon header fixes 2017-06-17 18:46:38 +02:00
Max 319288ef9f upstream 2017-06-17 17:19:34 +02:00
Max 32300553cd implemented custom header for trayicon 2017-06-17 16:57:39 +02:00
Kenneth Skovhede 1de5582cf2 If the server used an SSL certificate, the server settings would leak the certificate to all users that were logged in. 2017-06-07 10:05:05 +02:00
Kenneth Skovhede ded920178d Fixed a few issues with storing and reading UI settings 2017-05-31 22:44:16 +02:00
mknjcandGitHub 2f5b19c585 Enable Caching for static webroot files
Change the FileModule constructor of "/" to enable "Last-modified" header which allows webbrowsers to cache static files.
2017-05-29 19:51:48 +02:00
Max 9ffe470083 server https tls 1.0 removal 2017-05-17 00:08:40 +02:00
Max 91f4f79559 added posibility to read server password from database 2017-05-02 21:14:28 +02:00
Kenneth Skovhede 97e5e002be Merge branch 'feature/improve_commandline_progress' 2017-04-06 10:42:28 +02:00
Kenneth Skovhede 4fe6e2eb1f Fixed a startup crash 2017-04-06 10:35:20 +02:00
Kenneth Skovhede 62dc8e2178 Updated the UI commandline interface to work correctly with the status bar 2017-04-06 10:10:22 +02:00
Kenneth Skovhede e4f1d4106a Implemented a basic UI for running commandline from the WebUI 2017-04-04 16:58:29 +02:00
Kenneth Skovhede 8e9acddab8 Work on commandline 2017-03-29 09:53:28 +02:00
Kenneth Skovhede 8ed8919379 Fixed importing config files with AllowedDays set.
This fixes #2380.
2017-03-22 23:27:24 +01:00