Commit Graph

523 Commits

Author SHA1 Message Date
Sebastian Stenzel
cbb669aa40 reduced visibility of some classes 2016-02-28 17:49:21 +01:00
Sebastian Stenzel
be7e7e32b9 Same fix as previously made in commit 1a81b3a781: Deleting a DAV resource implicitly unlocks it. 2016-02-28 16:21:59 +01:00
Sebastian Stenzel
2ae5abfc0a - determine available space in NIO file system (fixes #97)
- mount volumes via Finder, not via shell script. this makes creating volumes manually unnecessary
2016-02-23 21:52:27 +01:00
Sebastian Stenzel
7cb435e517 support for RFC 4331: DAV:quota-available-bytes and DAV:quota-used-bytes
references #97; quota calculation in NIO filesystem still missing
2016-02-23 18:13:19 +01:00
Sebastian Stenzel
95b5f4c765 fixed switching to unlock view after initializing vault 2016-02-23 13:43:30 +01:00
Sebastian Stenzel
d926cbfd5c removed unused import [ci skip] 2016-02-22 23:49:27 +01:00
Sebastian Stenzel
61f1afba87 deleted legacy code 2016-02-22 23:48:01 +01:00
Sebastian Stenzel
c03bdd8425 - decrypt whole file, don't stop if enough data has been read from underlying fs
- write "length = 0" into file header until everything is encrypted

(tested on windows, everything is fine here)
2016-02-22 23:06:02 +01:00
Sebastian Stenzel
5b22806bbc fixed writing short ciphertext to file, that existed with a longer ciphertext before but wasn't truncated 2016-02-22 19:07:02 +01:00
Sebastian Stenzel
1467c8315c - moved method from WritableFile to File: moveTo, setLastModified, setCreationTime, delete
- moved method from File and Folder to Node: setLastModified, setCreationTime, delete
2016-02-22 16:42:31 +01:00
Sebastian Stenzel
e6a9786b7a minor bytebuffer allocation optimization 2016-02-22 14:58:27 +01:00
Sebastian Stenzel
819c56fe4c debugging WebDAV + Crypto + NIO 2016-02-22 14:58:08 +01:00
Sebastian Stenzel
ae7e865c24 fixed unit test 2016-02-22 13:12:36 +01:00
Sebastian Stenzel
c8df03a085 added test to check authentication errors in file headers 2016-02-22 13:08:58 +01:00
Sebastian Stenzel
5df9f35065 Locking unmapped URLs results in creation of that resource now, as specified in http://www.webdav.org/specs/rfc4918.html#rfc.section.9.10.4 2016-02-22 13:06:56 +01:00
Sebastian Stenzel
ac4a68649e now really: fixed invalid URI during MOVE, if dest path contains special chars (like spaces) 2016-02-22 11:37:37 +01:00
Sebastian Stenzel
7bc678d4dc - don't write encrypted file header, if no actual write happens inside of an encrypted writable file (temporary workaround only!)
- reduced loglevel
2016-02-21 23:34:03 +01:00
Sebastian Stenzel
b48670e073 fixed invalid URI during MOVE, if dest path contains special chars (like spaces) 2016-02-21 22:54:01 +01:00
Markus Kreusch
391d8013b5 Fixed CryptoWritableFile errors when reading from moved file
* CryptoWritableFile no longer writes header with zero size if file is
opened for writing
* Refactored FileContentDecryptor: Using Supplier<Mac> instead of
ThreadLocal<Mac>
* Fixed InMemoryWritableFile: No longer open after moveTo
2016-02-21 21:33:35 +01:00
Markus Kreusch
023e7d70e5 corrected type name [ci skip] 2016-02-21 19:50:14 +01:00
Markus Kreusch
2c92435b91 Refactored WebDav test servers
* Moved common code into own type
2016-02-21 18:57:50 +01:00
Markus Kreusch
180b14b0c7 Added /foo to server path 2016-02-21 18:38:16 +01:00
Sebastian Stenzel
8280bfe10a code simplification [ci skip] 2016-02-21 11:55:44 +01:00
Markus Kreusch
1994610d57 Refactored Concurrency test to guarantee correct execution order of 2016-02-21 00:22:20 +01:00
Markus Kreusch
a54f925b70 Moved Concurrency tests into own class 2016-02-21 00:22:20 +01:00
Sebastian Stenzel
c7c4dd4581 added file size obfuscation padding 2016-02-21 00:20:57 +01:00
Markus Kreusch
c93e4e462b Added dagger to filesystem-invariants-tests
* Added dependencies to pom
* Moved dagger version in parent pom to variable
2016-02-20 19:58:30 +01:00
Markus Kreusch
6950ad496a Removed /foo from server path 2016-02-20 19:58:30 +01:00
Sebastian Stenzel
8a7fca7a95 amendment to previously committed unit test [ci skip] 2016-02-20 18:10:26 +01:00
Sebastian Stenzel
a5e6c9fb9b added concurrent read invariant test 2016-02-20 17:43:32 +01:00
Sebastian Stenzel
382c3a0258 correct answer to well-formed but still unsatisfiable range request 2016-02-20 14:34:11 +01:00
Sebastian Stenzel
7f313772e5 fixed random access positioning 2016-02-20 14:10:46 +01:00
Sebastian Stenzel
3a82dfb23f - fixed return value of readBlockAligend
- adjusted loglevel of BlockAlignedWritableFile
[ci skip]
2016-02-20 12:34:14 +01:00
Sebastian Stenzel
b85a110a24 - report authentication error on the UI
- reduced visibility of some classes
2016-02-18 16:39:34 +01:00
Sebastian Stenzel
5a84228678 removed duplicate test case [ci skip] 2016-02-17 17:37:38 +01:00
Sebastian Stenzel
57b40675ac WebDAV range request support is back! 2016-02-17 17:35:05 +01:00
Sebastian Stenzel
50e8a9e429 a few more webdav frontend tests 2016-02-17 13:33:31 +01:00
Sebastian Stenzel
f93d32c6fb faster directory moving (no recursive iteration on filesystem needed any longer) 2016-02-17 12:05:16 +01:00
Sebastian Stenzel
a909095a1c Fixed reuse of directory-IDs after moving encrypted directories but keeping references to the old locations.
This caused an illegal state where two different directories share the same directory id, making further file operations on these directories virtually impossible.
2016-02-15 23:31:09 +01:00
Sebastian Stenzel
03208ebc5e fixed CryptoFolder (damn partial commits...) 2016-02-15 22:39:52 +01:00
Sebastian Stenzel
c41225eab6 Code simplification 2016-02-15 22:34:11 +01:00
Sebastian Stenzel
2725b6b920 not spawning new threadpools for each individual encryption/decryption job anymore 2016-02-15 16:35:30 +01:00
Sebastian Stenzel
ed0540e78f Using Runnable instead of Consumer for InMemoryWritableFile's reference to InMemoryFile's delete function [ci skip] 2016-02-15 15:55:54 +01:00
Markus Kreusch
8cdb6d0eab Fixed CryptoFileSystem
* avoid creation of a file and folder with equal names
2016-02-14 23:07:55 +01:00
Markus Kreusch
932e26f6a6 Added further invariant tests 2016-02-14 23:06:16 +01:00
Sebastian Stenzel
53a9b08dd6 fixed unit test 2016-02-14 21:00:12 +01:00
Sebastian Stenzel
752601f4da further crypto layer optimizations for WebDAV compliance 2016-02-14 20:50:42 +01:00
Sebastian Stenzel
cf64a6c425 fixed webdav copy/move [ci skip] 2016-02-14 00:26:47 +01:00
Sebastian Stenzel
f0cb91b22f - separated crypto filesystem and nameshortening filesystem for easier invariant testing
- creation of crypto filesystem only via DI in all integration tests (package-private constructor)
- new Maven module "filesystem-crypto-integration-tests" for tests as well as to provide a ready-to-use Dagger Component for integration tests in other modules.
2016-02-13 14:33:16 +01:00
Sebastian Stenzel
0d82e7dcc7 code simplicifaction + lockmanager unit tests 2016-02-12 14:31:47 +01:00