Skip to content

Commit

Permalink
MOSIP-20644 fixed for 0 byte copy issue (#1866)
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
sowmya695 and Sowmya Ujjappa Banakar authored Apr 2, 2024
1 parent 417b7fd commit bcb4cc6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ public MessageDTO processPacket(File file) {
DirectoryPathDto.LANDING_ZONE);
}
else if(landingZoneType.equalsIgnoreCase(LandingZoneTypeConstant.OBJECT_STORE)) {
boolean result =objectStoreAdapter.putObject(landingZoneAccount, registrationId, null, null, packetId, encryptedInputStream);
boolean result = objectStoreAdapter.putObject(landingZoneAccount, registrationId, null, null,
packetId, new ByteArrayInputStream(encryptedByteArray));
if(!result) {
throw new ObjectStoreNotAccessibleException("Failed to store packet : " + packetId);
}
Expand Down

0 comments on commit bcb4cc6

Please sign in to comment.