Commit Graph

113 Commits

Author SHA1 Message Date
Max 7aea21ef35 upstream 2019-07-28 12:44:20 +02:00
BlueBlock 08a1e9998a initial upgrade to framework 4.6.2
- no code changes except those noted below
- projects upgrade to 4.6.2
- wixinstaller project upgraded automatically by VisualStudio
- wixinstaller updated to require 4.6.2
- Library.Encryption changed to Standard2.0 so accommodate update to SharpAesCrypt
2019-07-26 09:18:16 -04:00
drwtsn32x 011e9b40d1 Include original database filename when saving database backup. 2019-06-05 20:46:33 -07:00
Michal Naiman 1bc1e58737 upstream 2019-04-28 13:45:26 +02:00
verhoek 72b1f6b6f8 Updated project files. 2018-11-02 22:45:07 +01:00
verhoek 8bb406cd15 Migrated to use the platform class. 2018-11-02 22:17:16 +01:00
Kenneth Hsu 9e0b031fee Remove unused members. 2018-10-15 21:20:30 -07:00
Max 30fab22340 unsinged whole solution 2018-09-09 14:21:55 +02:00
Max f1caf7ad3a upstream 2018-06-29 17:31:16 +02:00
Max e2e1ddc151 upstream 2018-06-29 17:26:53 +02:00
Kenneth Skovhede 3fc88878c1 Added some flexibility to the upgrade process to avoid unittest failures caused by repeated database upgrades. 2018-06-28 11:00:35 +02:00
Kenneth Skovhede 8a00ce5c80 Merge branch 'verhoek-fix/sqlite_file_permissions'
# Conflicts:
#	Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
2018-06-28 10:50:17 +02:00
Kenneth Skovhede db222c1991 Now getting the correct UID and GID 2018-06-28 09:28:14 +02:00
Kenneth Skovhede 5405139729 Replaced compile-time flag and dependency on Mono.Posix with a dynamic call to UnixSupport to defer loading the Mono.Posix library. 2018-06-27 13:36:08 +02:00
Max 68de4bbbde more libraries ported 2018-06-24 14:49:30 +02:00
Max e4997f1efc upstream 2018-06-24 12:49:51 +02:00
verhoek fc5f582800 moved dll filename var to const. Only change permissions on new file creation. 2018-06-23 19:16:12 +02:00
verhoek eabb840a4c Only add mono.posix on non-windows. 2018-06-22 17:21:28 +02:00
verhoek edc866c17e Make Codacy happier. 2018-06-22 09:47:46 +02:00
verhoek 05b2483b4c Added chmoding of sqlite files after opening by sqlite. Removal of some duplication. 2018-06-21 18:58:55 +02:00
verhoek 772eb1f187 Moved method to sqlite loader. 2018-06-21 18:08:52 +02:00
verhoek 12b5644789 Public unnecessary. 2018-06-21 17:41:30 +02:00
verhoek a456318d86 Undo of restoring TEMP/TMP environment variables. 2018-06-19 08:41:07 +02:00
verhoek 19132abd5f Check mixed mode assembly more explicitly. 2018-06-14 22:00:59 +02:00
verhoek 1cb13cc3cb Reduce indentation. 2018-06-14 21:43:20 +02:00
verhoek 98a4d4c247 Readded environment variables for SQLite on windows. 2018-06-14 21:35:21 +02:00
verhoek 7f06db8e44 Removed non-thread safe PRAGMA temp_store_directory command. 2018-06-11 22:06:06 +02:00
verhoek 544b89b3e2 Removed unused imports. 2018-06-11 19:10:41 +02:00
verhoek e51584e03f Added some logging in case of error. 2018-06-11 19:10:14 +02:00
verhoek fecd5163e5 Single responsibility applied. 2018-06-11 18:50:11 +02:00
verhoek d53a806e04 Removal of obsolete prev variable. 2018-06-11 18:31:39 +02:00
verhoek 784480a340 Removed tempdir environment variable.
Removed unused optional parameter for tempdir in LoadConnection for
LoadConnection and hence avoiding restoring never changed SQLITE_TMPDIR
vars.
2018-06-11 14:40:57 +02:00
Kenneth Skovhede ee64517f7d Removed calls to Console.WriteLine as we may run somewhere without a console. 2018-05-15 11:29:08 +02:00
Max f5672f69d9 upgrade .net to 4.6.2 2018-03-25 22:00:45 +02: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
Kenneth Hsu 056ff3da96 Use built-in method to determine if process is 64-bit. 2018-01-02 19:03:46 -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 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
Dan Stahr 377aef5fe1 Corrected path to the new files. 2017-06-08 23:21:25 +01:00
Dan Stahr 8c3d83f9af ...and add the files to the project as well 2017-06-08 16:24:06 +01:00
Dan Stahr d0f8fffc25 Added support for executing non-SQL code when performing a database update.
Some of the database migrations I'm planning to perform are very slow if using SQL only
or entirely impossible using the standard SQLite toolchain. I added a simple interface
with "before SQL" and "after SQL" hooks so that a database upgrade can perform custom
code operations as well.
2017-06-08 15:50:03 +01:00
Kenneth Skovhede f223c38ad7 Updating the SQLite library on Windows to 1.0.104.0.
The Linux version use Mono.Data.SQLite if possible, and otherwise attempts to wrap the system sqlite.so.

This fixes #2144
2017-03-01 11:10:01 +01:00
Kenneth Skovhede c79eaad6a8 Pedantic fix: use single quotes as described in the documentation 2017-01-16 10:28:38 +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 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 Skovhede 785c4d325f Reverted changes to solution file so it again forces Windows linefeeds.
This also moved stuff around in some project files.
2016-04-13 00:36:22 +02:00
Kenneth Skovhede 742eab0913 Fixed multiple cases where connections and command instances were not disposed.
This should fix all cases of "File is locked" on windows.
2016-04-06 20:40:34 +02:00
Kenneth Skovhede 3397e42e0b Merge pull request #1620 from FootStark/DeleteVolumeQuickFix
Mitigate slow volume deletion
2016-03-16 15:38:54 +01:00