Commit Graph
109 Commits
Author SHA1 Message Date
Tyler Gill 5646e3de9d Add a test for the DNSName property to the BackendTester and report the DNS names it returns. 2018-03-20 15:26:17 -06:00
Tyler Gill 4e4b9a56d6 Adds a test to the BackendTester for quota-enabled backends.
This test simply loads the quota information and displays it (or displays an error if the backend was unable to get it)
2018-03-20 13:53:32 -06:00
Tyler Gill dba0b3772e Add a test to BackendTester for backends which support renaming.
This is done by renaming the second file (or first if only one file is being created) and updating the in memory set of expected files,
while keeping track of the original info so it can be reported if it is still present (e.g., if the rename operated as a copy instead).
2018-03-20 13:50:06 -06:00
Tyler Gill cff8f172fc Add support for 'trim-filename-spaces' flag to BackendTester.
This flag ensures that any randomly generated file names don't have leading or trailing whitespace, which some backends might not support.
2018-03-20 13:48:21 -06:00
Tyler Gill 00c1a296da BackendTester should explicitly call Test() when performing the initial check to see if the main folder exists.
Without this, the auto create folders flag was broken for backends which lazily enumerate List() (as they instead throw after the try block is ended)
Calling Test() dierctly also better matches the IBackend interface contract.
2018-03-20 13:46:49 -06:00
wjan d8efebfe8a corrects changes in app.config files and other unnecessary file changes 2018-01-18 21:22:54 +01:00
wjan 8500988d7c adds rclone UI and backend improvements 2018-01-10 15:33:28 +01:00
vnau 01ec66cdc5 Removed AutoGenerateBindingRedirects compile warnings. 2017-12-17 01:50:17 +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
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
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Ulf Hedlund 5e1eb0b718 Added Sia as a backend provider 2017-08-31 22:37:04 +02:00
Dan Stahr dd20278690 Make Jottacloud available to public. 2017-06-10 11:15:06 +01:00
Kenneth Skovhede 2b2e495e15 Added the <Prefer32Bit>False</Prefer32Bit> option to all executables.
This fixes #2519
2017-06-02 09:42:29 +02:00
Kenneth Skovhede 2ee110abb3 Added fix for faster commandline startup to the other commandline tools 2017-03-13 09:26:22 +01:00
Kenneth Skovhede 1424be05f9 Fixed a bunch of typos.
This fixes #2278.
2017-01-23 22:12:24 +01:00
Kenneth Skovhede 52eb8e8478 Disabled MSBuild for much faster builds on MacOS 2016-12-29 23:12:41 +01:00
Wim Vancroonenburg 309afa21e6 merge with upstream 2016-06-29 14:33:10 +02:00
Kenneth Skovhede 3005594b38 Merge branch 'master' into nuget_setup
# Conflicts:
#	Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj
#	Duplicati/Library/Backend/S3/Duplicati.Library.Backend.S3.csproj
#	Duplicati/Library/Backend/S3/S3Wrapper.cs
#	thirdparty/CoCoL/CoCoL.dll
#	thirdparty/SSH.NET/Renci.SshNet.dll
2016-06-27 15:25:52 +02:00
Wim Vancroonenburg 9154d71154 Initial implementation of Dropbox backend. Needs errorhandling 2016-04-13 09:16:12 +02:00
Kenneth Skovhede 874d0e9860 Updated references so aftp backend is included for all build outputs 2016-04-10 20:30:46 +02:00
FootStark 74742669f5 BaseVersion SharePoint Backend 2016-03-22 00:49:16 +01:00
Kenneth Skovhede 59cc0005a3 Removed unused references and updated most libraries to come from NuGet sources instead of being provided in the thirdparty library 2016-01-29 10:47:39 +01:00
Kenneth Skovhede 8933e424dd Added support for box.com API.
This closes #579
2015-12-07 09:57:22 +01:00
Kenneth Skovhede a0115cb741 Added Mega.co.nz backend as requested in issue #806 2015-12-06 15:36:33 +01:00
Kenneth Skovhede 6f33f8dc53 Added B2 / Backblaze Cloud Storage support as requested in #1498 2015-12-05 14:33:30 +01:00
Kenneth Skovhede 27c697eec6 Added Amazon Cloud Drive backend as requested in issue #598 2015-12-05 11:25:26 +01:00
Kenneth Skovhede 60bd9693d0 Imporved handling of the ~ character in paths 2015-09-05 09:14:21 +02:00
Kenneth Skovhede e953b2d9de Setting various temp file related environment variables to force SQLite to place temporary files in the folder specified by --tempdir 2015-09-04 15:04:04 +02:00
Kenneth Skovhede 619514a0d1 Removed unused reference 2015-08-25 14:47:51 +01:00
Kenneth Skovhede d3f3615abd Added support for HubiC.
This closes #1351.
2015-07-01 16:46:09 +02:00
Kenneth Skovhede 55818d407c Added an OpenStack backend, tested with RackSpace.
This closes #626
2015-07-01 13:50:07 +02:00
Kenneth Skovhede 02ba7b91b1 Added helper code to store backendtester config in a file instead of on the commandline 2015-07-01 09:39:26 +02:00
Kenneth Skovhede fed160fa1c Implemented chunked-resumeable uploads for Google Drive for issue #1347.
Implemented a Google Cloud Storage backend, which closes #784.
This also adds support for Nearline and DRA so it closes #1385.
2015-06-29 22:37:31 +02:00
Kenneth Skovhede fc29aacff8 Removed the Google API, now running directly on the REST API. 2015-06-27 01:13:30 +02:00
Kenneth Skovhede 3fc9102acc Implemented the Google Drive backend, and trashed the Google Docs backend for issue #1347 2015-06-22 14:41:54 +02:00
Kenneth Skovhede b68290b95a Follow up to the latest pull request, changed all references to HexaD to "Duplicati Team" 2015-05-17 11:06:07 +02:00
Fabian Trampusch 55a853463d update year to 2015 2015-05-16 21:15:39 +02:00
Kenneth Skovhede 0d7cf7203b Updated to .Net framework version 4.5 2015-01-26 11:22:52 +01:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede b5de1b56ce Updated copyright year on all assemblies.
Also removed the copyright microsoft statement that was erroneously applied to some assemblies.
This fixes issue #1083.
2014-08-12 13:31:30 +02:00
Don Lockhart 2d3425675f Redid the connection string parameters to be more like S3. 2014-08-02 18:36:35 -04:00
Kenneth Skovhede ae8e7245f0 Removed incorrectly reported option 2014-07-22 15:15:37 +02:00
Kenneth Skovhede 55a0e0bfb5 Added an update disabler and enabled when running in the debugger as it works better without the app-domains 2014-07-15 23:33:21 +02:00
Kenneth Skovhede b37f79d6b3 Updated backend tester project to point to OneDrive 2014-07-15 13:34:50 +02:00
Kenneth Skovhede 8b64296584 Fixed a crash when calling the auto-updater 2014-07-09 22:15:27 +02:00
Kenneth Skovhede 9841dbc7ac Updated the autoupdater to use a static instance and fixed a number of paths to use the base dir.
Added a current pointer-file to allow running with a version that is not the newest.
Updater is now working except for OSX, where the bundle setup is causing issues when running the loaded instance.
2014-07-03 11:01:49 +02:00
Kenneth Skovhede 3510db8130 Added more controls for auto-updater from the commandline 2014-07-01 17:43:01 +02:00