Concerning https://bugs.ruby-lang.org/issues/14972
Puppet can read file size at the beginning of transfer, and should verify that the same file size was transferred to ensure an unexpected EOF wasn't encountered.
Marking this as a dup of PUP-9043, since the artifactory issues are covered in PUP-6114.