[
https://issues.apache.org/jira/browse/NIFI-16314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113588#comment-18113588
]
ASF subversion and git services commented on NIFI-16314:
--------------------------------------------------------
Commit e18682cad4297f78678699a3ae5b83a340a33096 in nifi's branch
refs/heads/NIFI-16315 from Joe Witt
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e18682cad42 ]
NIFI-16314 Trim trailing spaces in fragment attribute docs (#11641)
> Trim trailing spaces in Split*, UnpackContent, and ExtractEmailAttachments
> @WritesAttribute names
> -------------------------------------------------------------------------------------------------
>
> Key: NIFI-16314
> URL: https://issues.apache.org/jira/browse/NIFI-16314
> Project: Apache NiFi
> Issue Type: Task
> Reporter: Joe Witt
> Assignee: Joe Witt
> Priority: Major
> Fix For: 2.12.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Several processors document FlowFile attributes with a trailing space in
> @WritesAttribute. Generated NAR docs therefore advertise names that do not
> exist.
> Runtime already writes the unspaced keys
> (FragmentAttributes.SEGMENT_ORIGINAL_FILENAME, CoreAttributes.FILENAME,
> ExtractEmailAttachments.ATTACHMENT_ORIGINAL_FILENAME). This is documentation
> only.
> NIFI-16313 fixed the same paste on SegmentContent, including a duplicate
> annotation that also claimed a filename rewrite. That rewrite claim is unique
> to SegmentContent and is already handled there. This ticket is the remaining
> mechanical trim.
> Processors / attributes:
> - SplitText, SplitJson, SplitXml, SplitContent, SplitRecord, PartitionRecord,
> SplitAvro, UnpackContent: "segment.original.filename "
> - ExtractEmailAttachments: "filename " and "email.attachment.parent.filename "
> Out of scope:
> - Do not change what onTrigger writes.
> - Do not re-open UnpackContent CRC behavior (NIFI-15718).
> - Do not include ParseSyslog/ParseSyslog5424 syslog.sender,
> UpdateDatabaseTable output.path, or RetryFlowFile property-as-key docs.
> Proposed change:
> - Trim the attribute names in the annotations to match the constants actually
> put on FlowFiles.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)