Commit Graph
120 Commits
Author SHA1 Message Date
Kenneth Hsu 07c1d85b4a Remove empty statements. 2018-10-10 21:22:31 -07:00
Kenneth Hsu d4d1945faf Use utility method to append trailing slash.
This removes some duplicated code.
2018-09-22 10:19:45 -07:00
Max 30fab22340 unsinged whole solution 2018-09-09 14:21:55 +02:00
Max b11f4d7cdd Merge branch 'master' into netstandard 2018-09-09 12:24:31 +02:00
Kenneth Hsu eea479e056 Fix URL for Google Cloud Storage backend.
This fixes an issue where Google Cloud Storage users encountered the
following exception:

System.Net.WebException: The remote server returned an error: (404) Not Found.

The refactoring in revision 18de687530 ("Updated Put and Createfolder
using WebApi") omitted the "/o" in the endpoint for object uploads.

This addresses issue #3328.
2018-08-24 22:31:05 -07:00
Kenneth Skovhede c4b564358c Spelling fixes 2018-08-12 22:33:21 +02:00
Max e4997f1efc upstream 2018-06-24 12:49:51 +02:00
Kenneth Skovhede e9850224e2 Made the gcs backend available again. 2018-06-18 15:05:02 +02:00
verhoek a850ed8f26 Removed inheritance in favor of separation of googledrive / cloud storage api. 2018-06-11 10:19:03 +02:00
verhoek 441d893a49 Changes to make codacy happier. 2018-06-09 14:19:18 +02:00
verhoek bc826b2300 Tidy up. 2018-06-09 11:07:13 +02:00
verhoek 2a964e0146 Reordered private and statics. 2018-06-09 11:04:12 +02:00
verhoek 65f079e745 Made bucketobjectpath private. 2018-06-09 10:58:34 +02:00
verhoek 7b5779ca5d Merge remote-tracking branch 'origin' into webapi/googlecloudstorage
# Conflicts:
#	Duplicati/Library/Backend/GoogleServices/GCSConfig.cs (line endings)
#	Duplicati/Library/Backend/GoogleServices/GoogleCloudStorage.cs (readonly)
2018-06-09 08:49:23 +02:00
verhoek c1832cab4e Fixed incorrect line endings. 2018-06-09 08:30:39 +02:00
verhoek 40b83fe2dc Moved out AboutInfoUrl and CreateFolderUrl. 2018-06-03 19:46:54 +02:00
Kenneth Hsu afdae80716 Fix line ending issues. 2018-06-02 13:19:49 -07:00
verhoek c063fde018 Moved ListUrl, PutUrl and DeleteUrl to WebApi. 2018-06-01 16:21:28 +02:00
verhoek 83679c0f12 Moved Rename and Get Url to Google WebAPI. 2018-05-30 08:22:00 +02:00
verhoek 3691d6dfdf Initiated basic unit tests to ensure correct url helper functions. 2018-05-29 22:13:09 +02:00
verhoek 1ba8814d76 Started moving url specific construction to webapi. 2018-05-28 08:29:23 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
verhoek cac891d187 Added BucketObjectPath helper method. 2018-05-20 11:10:37 +02:00
verhoek 13ef221196 Updated Rename method. 2018-05-20 10:57:49 +02:00
verhoek 745b77da23 Renamed WebApi GoogleCloudServices to GoogleCloudStorage. Refactored Get. Fixed Layout. 2018-05-20 10:50:37 +02:00
verhoek 18de687530 Updated Put and Createfolder using WebApi. 2018-05-19 23:06:02 +02:00
verhoek d6a85ae497 Imports organized, bucket locations moved to google webapi. 2018-05-18 23:00:01 +02:00
verhoek 41234a314d Introduced UrlPath wrapper for stringbuilder to ease concatenation of multiple paths.
Started cleaning googlecloud services API.
2018-05-18 22:55:09 +02:00
verhoek 0cca2797df Use concat paths in helper functions of googledrive. 2018-05-15 20:29:08 +02:00
verhoek 1cde60c640 Removed misplaced leftover line. 2018-05-15 20:28:52 +02:00
verhoek 6dd64a553d Fixed code quality issues. 2018-05-14 21:01:18 +02:00
verhoek dae12fee53 Organized imports. 2018-05-13 16:27:14 +02:00
verhoek a67248f51f Moved Api strings to separate class similarly to the constant setup in Strings.cs. 2018-05-13 16:22:41 +02:00
verhoek 051b030836 Fixed typo regarding pageToken. Integrated other strings in static string class. 2018-05-12 12:42:51 +02:00
verhoek 44b5b00276 Renamed some googledriveapi var names. Modified ListFolder to be more readable. 2018-05-11 19:57:09 +02:00
verhoek 78a46c3a5c Renamed misspelled class urluttility to urlutility and newly added urlutility to uriutility. 2018-05-11 19:09:14 +02:00
verhoek d303db30d6 Replacing magic strings in google drive rest calls by query key value pairs. 2018-05-11 18:23:16 +02:00
verhoek ddba3459bf Removed extra local var. 2018-04-30 20:50:49 +02:00
Max f5672f69d9 upgrade .net to 4.6.2 2018-03-25 22:00:45 +02:00
Max cb3d830e8e dependencies corrections 2018-03-24 18:36:26 +01:00
Max d3d494b574 backends ported 2018-03-24 17:48:26 +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
Kenneth Skovhede bd863016fa Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
2018-02-26 11:37:10 +01:00
Rune Henriksen fc77b476fc changed from NYI to null returns. Added check to skip DNS check if no DNSName is provided 2018-02-21 22:38:01 +01:00
Rune Henriksen 00292953c3 added DNSName getter on Backend interface and added NotImplementedException methods on each backend class 2018-02-18 00:18:44 +01:00
Kenneth Skovhede 03b51b77af Updated the Google Drive backend to support TeamDrives. 2018-01-20 11:04:54 +01: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 44c53d3eb1 Merge branch 'master' of https://github.com/duplicati/duplicati into fix/list-ienumerable 2017-09-25 23:19:38 -06:00
Tyler Gill b3a3911d98 Change from wrapping yield returning methods with methods that do a try/catch, since they don't work due to lazy evaluation. 2017-09-25 23:19:31 -06:00