Commit Graph
18 Commits
Author SHA1 Message Date
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 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 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
Albertony 28489ce104 Jottacloud backend: Minor adjustment in verification of file state, to be sure we are handling it consistently in all operations. 2017-03-12 22:28:08 +01:00
Albertony f116f20623 Jottacloud backend: Changed to newer REST API - jfs.jottacloud.com instead of www.jottacloud.com, x-jftp-version:2.4 header instead of X-JottaAPIVersion:2.2. Simplified the implementation of uploading, as I found that the method which the official client uses is not the one based on multipart form-data. Fixed deletion, and deleting is now permanent instead of moving to trash. 2017-03-10 01:00:24 +01:00
Albertony bafbb8dda6 Jottacloud backend minor update: Trash and Links are also reserved mount point names on the built-in device. 2017-03-09 13:53:18 +01:00
Albertony e6e1c65767 Jottacloud backend now avoids using the possibly throttled stream when pre-computing the MD5 hash 2017-03-06 16:48:25 +01:00
Albertony 8070268a3a Jottacloud backend now fully supports custom devices and custom mount points 2017-03-06 13:56:41 +01:00
Albertony 426166ff94 Cleanup in the Jottacloud backend code. Also added implementation for supporting user defined mount points, but disabled for now since using it needs some extra considerations to avoid trouble. 2017-03-05 16:02:32 +01:00
Albertony 81ef8e9e22 Jottacloud backend improvements 2017-03-04 21:27:55 +01:00
Albertony 5b6330f0ea Jottacloud backend now works with simple backup and restore test 2017-03-04 19:12:41 +01:00
Albertony d4f75aeb3a Jottacloud backend can now be properly configured and test button works 2017-03-04 16:07:03 +01:00
Albertony 12731e6529 Initial project set up for Jottacloud backend 2017-03-04 13:34:19 +01:00