Markus Kreusch
56fcb99248
Test filesystem api
...
* Invariant tests for the File interface
* Invariant tests for reading / writing files
** Due to missing features currently ignoring CryptoFileSystem
2016-01-28 23:26:49 +01:00
Markus Kreusch
bfe0a50205
Fixed ShorteningFileSystem/Folder
...
* ShorteningFileSystem now exists after instantiation
* Creation of ShorteningFolder does no longer fail
2016-01-28 23:25:51 +01:00
Sebastian Stenzel
26aa18de77
Restored I/O graph
2016-01-28 21:21:21 +01:00
Sebastian Stenzel
6af4ee08f7
I/O statistics filesystem layer
2016-01-28 20:49:32 +01:00
Sebastian Stenzel
4059f99fd5
restored DelegatingReadableFile and DelegatingWritableFile for I/O stats
2016-01-28 20:33:16 +01:00
Sebastian Stenzel
0dc30c27d9
added crypto file system tests
2016-01-28 19:49:20 +01:00
Sebastian Stenzel
3696fea3ee
fixed invalid string formatter pattern
2016-01-28 19:07:10 +01:00
Sebastian Stenzel
bb34f5c17d
nameshortening tests
2016-01-28 19:05:34 +01:00
Sebastian Stenzel
b2a37c4b95
- read XOR write during BlockAlignedWritableFile (not r+w at the same time)
...
- simplified DelegatingFileSystem
2016-01-27 20:14:51 +01:00
Sebastian Stenzel
a972480e72
supporting change password again - now via CryptoFileSystemFactory
2016-01-27 18:21:47 +01:00
Sebastian Stenzel
091a44e65d
exception handling during mount/unmount/reveal operations
2016-01-27 14:46:48 +01:00
Sebastian Stenzel
c56d0b7d4a
first compile-clean attempt to integrate the layered I/O subsystem with the existing UI
2016-01-26 20:17:33 +01:00
Sebastian Stenzel
e4d626eef5
added some basic integration tests for the WebDavServer
2016-01-25 16:48:11 +01:00
Sebastian Stenzel
9052e7995f
added WebDavServer class to webdav frontend
2016-01-25 16:13:21 +01:00
Sebastian Stenzel
e23baa33f9
updated copyrights
2016-01-25 14:32:15 +01:00
Sebastian Stenzel
8d7c3a8f7b
renamed module
2016-01-25 14:30:51 +01:00
Markus Kreusch
56b061206a
Deleting temporary directories created in tests on shutdown
...
* Deleting using a shutdown hook (other approaches didn't work)
2016-01-25 00:03:22 +01:00
Markus Kreusch
f081e7d3ea
Removed SharedFileChannel transferTo and corresponding methods
...
* Removed from SharedFileChannel and Test
* Refactored Copier#copy(File,File) to sequence of truncated, followed
by looping read and write till EOF
* Changed tests accordingly
* Implemented CryptoWritableFile#truncate to make things work
2016-01-24 22:14:06 +01:00
Markus Kreusch
e241c5ba05
Worked on TODOs in SharedFileChannelTest
...
* Now testing for correct exception thrown from write and read
2016-01-24 01:12:55 +01:00
Markus Kreusch
406a9970ba
Fixed InMemoryFile#copyTo
...
* Does always copy the full contents
* Does always overwrite all contents in the target file
* Added file invariant test to test write after read returns written
bytes
2016-01-24 00:42:59 +01:00
Markus Kreusch
8ff5659680
Using AsynchronousFileChannel
...
* Replaced FileChannel with AsynchronousFileChannel
* Adapted tests
** transferTo tests and exception handling tests still pending (see
TODOs)
2016-01-23 23:52:31 +01:00
Sebastian Stenzel
2e5264bac2
support for forced decryption ignoring failed authentication
2016-01-23 16:49:04 +01:00
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