Skip to content

Commit

Permalink
Fix caching scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylangisc committed Nov 25, 2024
1 parent 2803868 commit 0579cdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public List<UserFileKeySetRequest> operate(final Session<?> client, final Passwo
final List<UserFileKeySetRequest> processed = new ArrayList<>();
// Null when operating from scheduler. File reference is set for post upload.
final Long fileId = file != null ? Long.parseLong(nodeid.getVersionId(file)) : null;
final HashMap<UserKeyPairContainer, Credentials> passphrases = new HashMap<>();
UserFileKeySetBatchRequest request;
do {
log.debug("Request a list of missing file keys for file {}", file);
Expand All @@ -94,7 +95,6 @@ public List<UserFileKeySetRequest> operate(final Session<?> client, final Passwo
final Map<Long, List<UserUserPublicKey>> userPublicKeys = missingKeys.getUsers().stream().collect(groupingBy(UserUserPublicKey::getId));
final Map<Long, List<FileFileKeys>> files = missingKeys.getFiles().stream().collect(groupingBy(FileFileKeys::getId));
for(UserIdFileIdItem item : missingKeys.getItems()) {
final HashMap<UserKeyPairContainer, Credentials> passphrases = new HashMap<>();
for(FileFileKeys fileKey : files.get(item.getFileId())) {
final EncryptedFileKey encryptedFileKey = TripleCryptConverter.toCryptoEncryptedFileKey(fileKey.getFileKeyContainer());
final UserKeyPairContainer keyPairForDecryption = session.getKeyPairForFileKey(encryptedFileKey.getVersion());
Expand Down

0 comments on commit 0579cdf

Please sign in to comment.