Commit Graph

369 Commits

Author SHA1 Message Date
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
Markus Kreusch
6acbba476b Fixed weak valued cache test
* Test should no longer fails when JVM memory is more than
Integer.MAX_VALUE
2015-12-29 21:48:00 +01:00
Sebastian Stenzel
9385c3bf6d separated filename shortening layer from metadata hiding layer 2015-12-29 16:24:42 +01:00
Sebastian Stenzel
aa89f60c2f package name org.cryptomator.webdav.jackrabbit was ambiguous 2015-12-29 14:29:25 +01:00
Sebastian Stenzel
44d1250986 Added new filesystem layer for read/write alignment with boundary of encrypted chunks. 2015-12-29 13:41:47 +01:00
Sebastian Stenzel
c21654eac1 DelegatingFileSystem: Use factories for Files, Folders, ReadableFiles and WritableFiles 2015-12-29 11:46:37 +01:00
Sebastian Stenzel
c466c7e3ba New base class for filesystem decorators, which basically just delegate work to the underlying file system 2015-12-29 10:50:23 +01:00
Sebastian Stenzel
3317babe6b renamed package org.cryptomator.crypto.fs to org.cryptomator.filesystem.crypto (same as all other org.cryptomator.filesystem.* filesystems) [ci skip] 2015-12-29 07:50:31 +01:00
Sebastian Stenzel
3998a7cd58 typo [ci skip] 2015-12-29 07:47:03 +01:00
Markus Kreusch
260303127e Replaced DirectoryWalker by FileSystemVisitor 2015-12-28 23:07:09 +01:00
Markus Kreusch
d073bdfad9 Removed FolderCreateMode from filesystem api
* Folder#create now always creates the parents
2015-12-28 21:29:34 +01:00
Markus Kreusch
62d8cdfe4f Added commons project 2015-12-28 20:58:38 +01:00
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