Commit Graph

355 Commits

Author SHA1 Message Date
Markus Kreusch
356ea5c319 Refactored filesystem api
* Removed Readable- and WritableBytes
** Replaced with Readable-/WritableByteChannel
** Methods now integrated in Readable- and WritableFile
** Replaced positioned read/write by method to set the position
2015-12-28 20:54:18 +01:00
Markus Kreusch
1804a52740 Restructured test dependencies
* All modules now have commons-test as test dependency.
* commons-test has dependencies to junit, hamcrest and mockito
2015-12-28 19:30:40 +01:00
Markus Kreusch
3dd9c623f0 Fixed typo 2015-12-28 19:29:35 +01:00
Markus Kreusch
157839c32f Changes to filesystem API and nio implementation
* Partial implementation of nio filesystem
* Addded some tests
* Added project for common test dependencies
* Removed default implementation of Folder#delete
** reason: didn't work because empty folders were not deleted and this
cannot be done in the default implementation
2015-12-28 16:32:09 +01:00
Sebastian Stenzel
0254569826 webdav move/copy/delete 2015-12-28 14:06:40 +01:00
Sebastian Stenzel
389c49d846 PUT and MKCOL support. Simplified paths (utilizing a servlet filter to make sure, directory paths always end on "/" while file paths don't). 2015-12-27 21:53:50 +01:00
Sebastian Stenzel
d3000da2e9 added javax.servlet-api dependency needed by jackrabbit 2015-12-24 00:40:39 +01:00
Sebastian Stenzel
c4eee58f72 moved debug log4j config to correct directory [ci skip] 2015-12-24 00:33:38 +01:00
Sebastian Stenzel
e67c8f2816 first experiments with jackrabbit-filesystem-adapter 2015-12-24 00:32:07 +01:00
Sebastian Stenzel
dc5d3e21f3 Externalized FileHeader encryption/decryption to separate class 2015-12-20 14:51:53 +01:00
Sebastian Stenzel
80e1185325 Adding blocking behaviour when appending data to be en/decrypted.
Using composite instead of inheritance for FileContentDecryptorImpl and FileContentEncryptorImpl
2015-12-20 12:42:02 +01:00
Sebastian Stenzel
49c70c03fe now also testing MAC against openssl-computed result.
also we're testing encryption of "hello world" instead of "hello world " now :D
[ci skip]
2015-12-20 11:13:08 +01:00
Sebastian Stenzel
3045805751 File content encryption and decryption (still without padding, no partial support) 2015-12-20 00:38:14 +01:00
Sebastian Stenzel
4e0143eb05 started implementation of FileContentEncryptorImpl 2015-12-19 18:22:03 +01:00
Sebastian Stenzel
951a02a9a5 cleanup 2015-12-19 11:26:35 +01:00
Sebastian Stenzel
69b192fe82 shutting down file reader when closing the readablefile 2015-12-19 01:15:54 +01:00
Sebastian Stenzel
a055066f72 added timeouts to crypto fs tests 2015-12-19 00:54:51 +01:00
Sebastian Stenzel
a879ed2237 Preparations for file content encryption (no partial support yet) 2015-12-18 22:07:12 +01:00
Sebastian Stenzel
9711314080 removed unused code [ci skip] 2015-12-18 00:09:48 +01:00
Sebastian Stenzel
b22ac719f2 renamed filesystem layer maven modules 2015-12-18 00:06:31 +01:00
Markus Kreusch
25eed3dc4a Changes to filesystem API and nio implementation
* Partial implementation of nio filesystem
* Removed timeouts from openReadable and openWritable
* Added convenience methods for copying
* Added utility to support deadlock safe opening of multiple files
2015-12-17 23:46:58 +01:00
Sebastian Stenzel
58524e5099 added test for file/folder move operations 2015-12-16 19:56:46 +01:00
Sebastian Stenzel
eadf736e98 added new "shortening layer" responsible for shortening long file names
the crypto layer is no longer resposible for the postprocessing of long names, as this is an unrelated task without any security implications
2015-12-16 18:37:08 +01:00
Sebastian Stenzel
b41ccb6054 added slack notifaction to travis config 2015-12-15 23:26:35 +01:00
Sebastian Stenzel
72c0d2cb96 removed timeouts from tests, as timeouts were caused by slow JVM stuff like class loading or Cipher.getInstance 2015-12-15 21:43:24 +01:00
Sebastian Stenzel
92e9fc5871 Merge code coverage metrics from branch 'master' into layered-io 2015-12-15 21:35:01 +01:00
Sebastian Stenzel
044532ef15 reverted to original coveralls snippet 2015-12-15 21:25:55 +01:00
Sebastian Stenzel
e4955ea6c8 still trying to speed up build
building uber-jar only when deploying
2015-12-15 21:14:56 +01:00
Sebastian Stenzel
b2cb5d1dac trying to speed up build 2015-12-15 20:54:26 +01:00
Sebastian Stenzel
e11b0a3421 trying to speed up build 2015-12-15 20:48:12 +01:00
Sebastian Stenzel
de29c84a0c fixed code coverage job config 2015-12-15 20:39:10 +01:00
Sebastian Stenzel
b3c65267df added test coverage build plugin 2015-12-15 20:32:55 +01:00
Sebastian Stenzel
70eb0c99e4 implemented encryption/decryption of masterkey file in crypto layer 2015-12-15 19:50:42 +01:00
Sebastian Stenzel
35bb042430 moved CryptoFolder.contains(Node) to Folder.isAncestorOf(Node), clarified a few javadocs 2015-12-15 13:50:50 +01:00
Sebastian Stenzel
762f362784 adjusted to updated API, restored Folder.copy and Folder.move 2015-12-15 02:27:41 +01:00
Markus Kreusch
3c7651a78a Modified file system API
* Changed IOExceptions ot UncheckedIOExceptions
* Added javadoc
* Added directory move and copy operations
2015-12-14 23:49:28 +01:00
Sebastian Stenzel
99015680b1 began implementation of new filesystem api based encryption layer 2015-12-14 19:20:00 +01:00
Sebastian Stenzel
e1b74ce312 first tests with refactored io layers 2015-12-14 04:37:29 +01:00
Markus Kreusch
3971d3afd5 Added first draft of file system API 2015-12-13 21:45:03 +01:00
Sebastian Stenzel
3adfe6871b reduced visibility of test classes [ci skip] 2015-12-07 15:05:01 +01:00
Sebastian Stenzel
97a72ecbf7 make some better use of mocks during unit tests 2015-12-07 14:59:12 +01:00
Sebastian Stenzel
0697e19b01 less random numbers in tests, explicit test timeout 2015-12-06 14:52:46 +01:00
Sebastian Stenzel
973a2fb395 fail with exception, if crypto worker is waiting too long (1 second) to be able to write to the output stream 2015-12-06 14:41:27 +01:00
Sebastian Stenzel
fc06595977 cancel work if poisoning (i.e. graceful termination) fails after timeout 2015-12-06 12:02:56 +01:00
Sebastian Stenzel
e4220246ab (now really) fixed deadlock when crypto workers die due to exceptions 2015-12-06 11:10:19 +01:00
Sebastian Stenzel
128a93d44e fixed deadlock when crypto workers die due to exceptions 2015-12-06 02:05:20 +01:00
Sebastian Stenzel
a7c19624ce randomizing masterkeys is now a explicit task, so random numbers are not needed when loading a masterkey file from disk. trying to use an uninitialized cryptor results in runtime exceptions 2015-11-23 15:09:39 +01:00
Sebastian Stenzel
2fca4629b9 externalized AES-SIV to independent library 2015-11-18 08:25:50 +01:00
Sebastian Stenzel
4d5cc7a5a0 fixes #104 2015-11-05 20:39:05 +01:00
Sebastian Stenzel
ebb421bd4c fixes #100 (reveal script now running on background thread. to be confirmed on Windows Vista) 2015-11-03 00:29:39 +01:00