bugfix: correct decryption of looooooong filenames (>255 chars)

This commit is contained in:
Sebastian Stenzel
2014-12-08 22:25:45 +01:00
parent ebb3207854
commit 884b894e04
10 changed files with 99 additions and 32 deletions
@@ -118,6 +118,9 @@ public class WebDavLocatorFactory extends AbstractLocatorFactory implements Sens
@Override
public byte[] readPathSpecificMetadata(String encryptedPath) throws IOException {
final Path metaDataFile = fsRoot.resolve(encryptedPath);
if (!Files.isReadable(metaDataFile)) {
return null;
}
final long metaDataFileSize = Files.size(metaDataFile);
final SeekableByteChannel channel = Files.newByteChannel(metaDataFile, StandardOpenOption.READ);
try {