Commit Graph

434 Commits

Author SHA1 Message Date
Sebastian Stenzel
a6bbc0ed44 - CryptoFS + InMemory Benchmark test
- faster growing in-memory files
2016-01-23 02:07:13 +01:00
Markus Kreusch
6479573346 Added FolderCopyToTests
* Tests for CopyTo Operation
* Changes to Matchers and Test-Utilities
* Changes to make things work
* TODO: One test still not working due to access to channel by multiple
threads
2016-01-22 22:58:16 +01:00
Sebastian Stenzel
cd72dae0d7 pass I/O exceptions on producer side to the consumer, so that decryption fails, if reading the decrypted file fails. 2016-01-17 21:44:47 +01:00
Markus Kreusch
d5c43f625f Added log4j config 2016-01-17 19:02:25 +01:00
Markus Kreusch
0a1eaa8600 Fixed exception when closing channel that was opened with exception 2016-01-17 19:02:24 +01:00
Sebastian Stenzel
9278426131 forgot one place in commit fa35b63 [ci skip] 2016-01-16 01:18:23 +01:00
Sebastian Stenzel
fd98f0a69f pass though IOExceptions from writer thread during close() [ci skip] 2016-01-16 01:09:10 +01:00
Sebastian Stenzel
fa35b63b6d same InterruptedIOException in all cases 2016-01-16 01:00:57 +01:00
Markus Kreusch
51f5b6661f Adjusted fix for issue in CryptoFileSystem when deleting a file
* CryptoWritableFile now only invokes writeTaks.get if not already
closed
* CryptoWritableFile now cancels writeTask before delete
2016-01-16 00:47:13 +01:00
Markus Kreusch
a7eb99f7d5 Renamed classes [ci skip] 2016-01-16 00:10:32 +01:00
Markus Kreusch
1a9ac16256 Additional filesystem-invariants-tests
* added tests
* fixed issue in CryptoFileSystem when deleting a file
** FileContentEncryptorImpl now does not submit an empty cleartext
buffer when receiving EOF
** CryptoWritableFile now only writesHeader on close if the file is
still open
2016-01-15 23:54:21 +01:00
Markus Kreusch
b330148b5f Avoid loosing exception stacktrace 2016-01-15 21:46:40 +01:00
Markus Kreusch
297ce34c1a Renamed classes [ci skip] 2016-01-15 19:28:35 +01:00
Markus Kreusch
20e7f4a548 Added FolderChildrenTests and FolderTests
* implemented some testcases
* fixed some issues
2016-01-15 19:13:46 +01:00
Markus Kreusch
18cf25738e Javadoc [ci skip] 2016-01-15 11:55:36 +01:00
Markus Kreusch
d14c81d066 Tests for AutoClosingStream 2016-01-15 11:52:32 +01:00
Markus Kreusch
459ce8b5d2 Completed implementation of AutoClosingStream 2016-01-14 21:47:27 +01:00
Sebastian Stenzel
bf0988bb20 - Changed OS X PUT request filter from timeout-controlled to headerfield-controlled
- added tests
2016-01-13 18:11:22 +01:00
Markus Kreusch
9c844e626a Fixed NioFileSystemIntegrationTests on windows
* Streams returned from NioFolder#children, files and folders are now
closed automatically after a terminal operation
* Not closing them lead to a bug on windows causing directories to be
not deleted after a successful Files.delete invocation
2016-01-12 23:52:28 +01:00
Sebastian Stenzel
8e1c63338f more modular design of UriNormalizationFilter [ci skip] 2016-01-12 21:03:18 +01:00
Markus Kreusch
b16ceb1ba8 Allow to set served path for NioWebDavServer by system property 2016-01-12 20:26:29 +01:00
Sebastian Stenzel
b2a90ddcf6 removed tests that no longer apply 2016-01-12 13:13:46 +01:00
Sebastian Stenzel
55bee3d0d5 Perform URI normalization based on the result of checking for actually existing files & folders instead of request parameters only. This should fixe MOVE requests on Linux 2016-01-12 12:32:39 +01:00
Sebastian Stenzel
58b4905c91 apply an idle timeout to chunked put requests (as finder doesn't terminate chunked transfers properly) [ci skip] 2016-01-11 18:43:57 +01:00
Sebastian Stenzel
9c9e9769ee fixed dependencies 2016-01-10 16:30:00 +01:00
Sebastian Stenzel
3b178030c7 - Fixes #128 and #119 by using unique directory id as associated data during filename encryption/decryption
- Using WeakValuedCache in all filesystem layers to prevent "twin" instances of the same folder
- Merge branch 'layered-io' of https://github.com/cryptomator/cryptomator into layered-io
2016-01-10 16:27:56 +01:00
Markus Kreusch
f735a64814 Improved request logging 2016-01-10 15:06:56 +01:00
Sebastian Stenzel
560c6251f6 moved WeakValuedCache to commons 2016-01-10 15:04:35 +01:00
Sebastian Stenzel
b2d425e11f added possibility to add associated data to filename encryption (references #128, #119) 2016-01-10 13:39:12 +01:00
Sebastian Stenzel
8f319b3f87 dir listing speed: dont't determine filesize during getProperties() but only when explicitly asked by getProperty(String) 2016-01-09 22:19:16 +01:00
Markus Kreusch
5ff4f4c9c7 Changed handling of creation time
* creationTime now creates an Optional
* Removed FileSystem#supports and FileSystemFeature
2016-01-09 19:15:07 +01:00
Sebastian Stenzel
31f1b6478a apparently webdav modification/creation times need to be UTC (even though the time zone is part of the RFC 1123 string...) [ci skip] 2016-01-09 18:47:00 +01:00
Sebastian Stenzel
a84a4b932d support for webdav properties:
- getcontentlength
- getlastmodified
- creationdate (why isn't this one called "get"?)
2016-01-09 18:34:13 +01:00
Markus Kreusch
248984ce20 Fixed test dependencies 2016-01-09 17:56:25 +01:00
Sebastian Stenzel
fcf4476ae3 Added ReadableFile#size() 2016-01-09 16:39:14 +01:00
Sebastian Stenzel
0c42392244 Make delegating folders create their parents during own creation if they don't exist yet. 2016-01-09 01:22:27 +01:00
Markus Kreusch
415423abd7 Added creation time
* Getter and setter for files and folders
* A way to determine if a file system supports creation dates
* WebDav compliant implementation in jackrabbit-adapter
* Tests
2016-01-09 00:51:25 +01:00
Markus Kreusch
a746a73667 Fixed problem with modification time property set as creation time
instead
2016-01-08 23:15:57 +01:00
Sebastian Stenzel
a8f53b7084 Increased performance of non-random-access read/write by switching to block-aligned mode only when necessary. 2016-01-06 10:50:31 +01:00
Markus Kreusch
94ed3a6b7c Reenabled NioFileSystem integrationtests 2016-01-06 01:55:08 +01:00
Markus Kreusch
3f44d9bb66 Added project filesystem-invariants-tests
* Implemented some tests to be run on multiple implementations to
demonstrate how such tests can be implemented
* Detected problems with CryptoFileSystem(NioFileSystem)
* Made CryptoFileSystem and CryptorImpl public / constructible from
other packages
2016-01-06 01:51:46 +01:00
Markus Kreusch
801253aa27 Tests for filesystem-nio
* Split tests into integration and unit tests
* Rewritten and completed unit tests
** By introducing a layer around Files.* to allow mocking of
NIO-Operations
** And introducing a factory to allow mocking of constructors
* Integration tests ignored temporarily
** TODO reduce amount of testcases and enable
2016-01-06 01:51:46 +01:00
Sebastian Stenzel
a05fa19de4 Merge branch 'separate-installers' into layered-io 2016-01-06 01:03:45 +01:00
Sebastian Stenzel
0b5e09ac60 moved OS-specific installers to separate git repos [ci skip] 2016-01-06 01:03:08 +01:00
Sebastian Stenzel
ddf6353729 Using DI to stack up filesystem layers 2016-01-05 16:55:52 +01:00
Sebastian Stenzel
b31f6a0aec fixed another test, but not that important. thus [ci skip] 2016-01-04 21:32:11 +01:00
Sebastian Stenzel
f75cf48d7b fixed that test... 2016-01-04 21:03:09 +01:00
Sebastian Stenzel
578f52f4ba cleanup, attempt to fix test 2016-01-04 20:46:10 +01:00
Sebastian Stenzel
ae55874709 Random Access Decryption 2016-01-04 20:31:49 +01:00
Sebastian Stenzel
f46a79fa63 Added test for AuthenticationFailedException during filename decryption 2016-01-02 14:40:17 +01:00