NIFI-1650: Ensure that proper size and offset are specified for Content Claim when viewing FlowFiles still in queue

This commit is contained in:
Mark Payne 2016-03-21 09:03:53 -04:00
parent d3578a7c03
commit 38c782c30b
1 changed files with 3 additions and 3 deletions

View File

@ -520,9 +520,9 @@ public final class DtoFactory {
dto.setContentClaimSection(resourceClaim.getSection()); dto.setContentClaimSection(resourceClaim.getSection());
dto.setContentClaimContainer(resourceClaim.getContainer()); dto.setContentClaimContainer(resourceClaim.getContainer());
dto.setContentClaimIdentifier(resourceClaim.getId()); dto.setContentClaimIdentifier(resourceClaim.getId());
dto.setContentClaimOffset(contentClaim.getOffset()); dto.setContentClaimOffset(contentClaim.getOffset() + record.getContentClaimOffset());
dto.setContentClaimFileSizeBytes(contentClaim.getLength()); dto.setContentClaimFileSizeBytes(record.getSize());
dto.setContentClaimFileSize(FormatUtils.formatDataSize(contentClaim.getLength())); dto.setContentClaimFileSize(FormatUtils.formatDataSize(record.getSize()));
} }
return dto; return dto;