From 38c782c30bde7d687fd6d0596fbc167c1f3f2243 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Mon, 21 Mar 2016 09:03:53 -0400 Subject: [PATCH] NIFI-1650: Ensure that proper size and offset are specified for Content Claim when viewing FlowFiles still in queue --- .../main/java/org/apache/nifi/web/api/dto/DtoFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java index 78584c385a..6157285262 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java @@ -520,9 +520,9 @@ public final class DtoFactory { dto.setContentClaimSection(resourceClaim.getSection()); dto.setContentClaimContainer(resourceClaim.getContainer()); dto.setContentClaimIdentifier(resourceClaim.getId()); - dto.setContentClaimOffset(contentClaim.getOffset()); - dto.setContentClaimFileSizeBytes(contentClaim.getLength()); - dto.setContentClaimFileSize(FormatUtils.formatDataSize(contentClaim.getLength())); + dto.setContentClaimOffset(contentClaim.getOffset() + record.getContentClaimOffset()); + dto.setContentClaimFileSizeBytes(record.getSize()); + dto.setContentClaimFileSize(FormatUtils.formatDataSize(record.getSize())); } return dto;