mirror of https://github.com/apache/nifi.git
b1e77019ac
Tar format allows us to archive files with their original permission, owner, group name and last modification time. When unpacking with Tar unpacker, these information are stored in new attributes with names: "file.inner.*". This way, it preserves backward compatibility when using parallel with GetFile processor (which stores information in "file.*"). NIFI-6128 Tar unpackContent: assert date of last modification of content is a valid date format. NIFI-6128 UnpackContent: use original attributes In case of tar format: - Use "file.*" attributes instead of "file.inner.*" (which eventually lead to overwrite if tar had been fetched with GetFile) - Store file permission in "rwx" format, instead of integer representation. - Also replace SimpleDateFormat with DateTimeFormatter. Replace generic error with IllegalArgumentException Also refactor: move permission string to top of file as static constant. Update test Remove 'file systems' text Unpackcontent: Fill file.creationTime attribute which always holds the very same value as file.lastModifiedTime. This closes #4370. Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org> |
||
---|---|---|
.. | ||
src | ||
pom.xml |