Commit Graph
51 Commits
Author SHA1 Message Date
Kenneth Hsu 8c0128b0f9 Provide missing value to format item. 2018-05-12 17:06:12 -07: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
wjan 8500988d7c adds rclone UI and backend improvements 2018-01-10 15:33:28 +01:00
vnau e78c3f8650 Removed throw expressions to avoid Microsoft compiler bug. 2017-12-25 22:59:17 +07:00
vnau 62a7901aca Compression modules refactored to work with streams instead of filenames;
Added unit test to check compression reversibility
2017-12-25 04:12:19 +07: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
Kenneth SkovhedeandGitHub 33314ce7c9 Merge pull request #2763 from tygill/fix/list-ienumerable
Change IBackend.List() to return IEnumerable instead of List
2017-09-28 11:06:41 +02:00
Kenneth Hsu ce1577fbc2 Fix incorrect format item in format string. 2017-09-26 19:32:08 -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
Kenneth Skovhede a06f38442a Updated all Newtonsoft.Json packages 2017-09-23 00:25:50 +02:00
Kenneth Skovhede 6d401fbd8d Changed all hash algorithms to use the Cng version.
This fixes #2621
2017-09-20 09:58:43 +02: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
Ulf Hedlund 5e1eb0b718 Added Sia as a backend provider 2017-08-31 22:37:04 +02:00
Kenneth Skovhede a0d9ad5d4e Changed --backup-prefix hint texts to --prefix.
This fixes #2548
2017-06-19 22:06:35 +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 046b522a8d Updated NewtonSoft.Json 2017-05-17 11:08:51 +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 a029890409 Implemented better default error messsages 2017-01-09 11:35:38 +01:00
Kenneth Skovhede 52eb8e8478 Disabled MSBuild for much faster builds on MacOS 2016-12-29 23:12:41 +01:00
Kenneth SkovhedeandGitHub c5a943dfbb Merge pull request #1901 from mnaiman/recompress_fix
Recompress fix
2016-08-23 13:57:09 +02:00
Max 7127970fd5 better progress reporting 2016-08-21 21:12:48 +02:00
Max 861dd9cc8b during recompress is neccessary to recalculate hashes of recompressed block file and update them in dindex files - fixed 2016-08-21 12:53:44 +02:00
Kenneth Skovhede ae8ad5e1b0 Added DropBox backend as a reference so it is included in the builds, as mentioned in #1835 2016-08-16 11:08:21 +02:00
Max 11370e4aea rename file inside dindexes 2016-07-14 21:06:43 +02:00
Max 3063a780d2 preserve files lastwrite time 2016-07-14 16:03:29 +02:00
Max e76ba365ee delete verification file if reupload enabled 2016-07-14 12:13:54 +02:00
Max c603c1f85e small tuning 2016-07-14 00:05:35 +02:00
Max 1330d45e6d help text for recompress 2016-07-13 23:07:13 +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
Max 75c5a46436 missing project file 2016-06-20 20:49:06 +02:00
Max 3b432356cf ability to recompress whole backend to another type of compression 2016-06-05 23:37:10 +02:00
Max123456 aaadd31e0c fix for 1170 2016-05-29 00:56:25 +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 7ad6a68163 Fixed a crash in recoverytool 2016-01-21 23:42:51 +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 9522857113 Added --parameters-file to recovery tool to work around problems with commandline escaping. 2015-09-17 20:02:34 +02:00
Kenneth Skovhede 49dfcb2651 Fixed handling of relative paths in recovery tool.
This fixes #1454.
2015-09-05 09:38:52 +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 e087dd340c Set assembly version 2015-08-24 16:16:07 +01:00