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
Markus Kreusch
ff4448bac0
Tests for filesystem-nio
...
* Renamed tests from ...IntegrationTest back to ...Test
** to allow better integration with moreunit
** because some methods of the classes can only be integration tested
some not which lead to a strange splitting of the tests
* Added more tests
2016-01-02 02:05:18 +01:00
Sebastian Stenzel
e9f5593e33
fixed InMemoryFileSystem: Only one volatile file/folder for a given name at a time.
2016-01-01 23:09:48 +01:00
Sebastian Stenzel
a9744167c1
new filesystem-aware WebDAV LocatorFactory
2016-01-01 22:48:16 +01:00
Sebastian Stenzel
4e7f3503d9
adjusted in-memory filesystem to comply with API (return files/folders when requested, even though the oposite kind exists for the given name)
2016-01-01 22:44:46 +01:00
Markus Kreusch
71face8091
Tests for filesystem-nio
...
* Renamed existing tests to ...IntegrationTest
* Created Unit-Tests for Readable- and WritableNioFile (incomplete)
2016-01-01 19:00:39 +01:00
Sebastian Stenzel
0c2caf4469
Even more FifoParallelDataProcessor simplification + test
2016-01-01 16:15:36 +01:00
Sebastian Stenzel
9665ca8dff
Simplified FifoParallelDataProcessor
2016-01-01 16:06:19 +01:00
Sebastian Stenzel
c3652a22a0
reject execution when shut down
2016-01-01 14:10:15 +01:00
Sebastian Stenzel
3043aa29c2
added enc/dec benchmark test
2016-01-01 13:49:20 +01:00
Sebastian Stenzel
a388acfce4
added test
2016-01-01 12:50:25 +01:00
Markus Kreusch
64dec64e95
Created NioWebDavServer
...
* Extracted Server-logic from InMemoryWebDavServer to
FileSystemBasedWebdavServer
* Made InMemoryWebdavServer and NioWebdavvServer use
FileSystemBasedWebdavServer
2015-12-31 17:46:24 +01:00
Markus Kreusch
39535d08e7
Implemented NioFile
...
* Implementation of NioFile methods
* Extracted Readable/WritableNioFile into separate classes
** Created SharedFileChannel to allow Readable/WritableNioFile for the
same NioFile to use a single, shared FileChannel
* Added tests for NioFile
* Tests for Readable/WritableNioFile pending
2015-12-31 16:49:54 +01:00
Markus Kreusch
806e366a72
Added test for Copier
...
* Created Test covering all lines and mutations
* Added HierachicalContextRunner dependency to allow more structured
tests
2015-12-30 20:53:27 +01:00
Markus Kreusch
db4b8955f4
Implemented missing tests for NioFolder
2015-12-30 17:05:02 +01:00
Markus Kreusch
1bf0c76918
Added tests for NioFolder
...
* Completed testcases
* Implemented most of them (2 missing)
* Added OptionalMatcher
2015-12-30 00:43:02 +01:00
Sebastian Stenzel
282fd5ecee
added copyright header [ci skip]
2015-12-29 22:09:12 +01:00
Sebastian Stenzel
634f176cf9
Added block-aligned read/write
2015-12-29 22:05:19 +01:00
Sebastian Stenzel
c86068d7bb
updated InMemoryFile to support distinct read and write access without mixing up positions and stuff
2015-12-29 21:58:47 +01:00