HomePhorge

(#4922) Don't truncate remotely-sourced files on 404
743e03930758Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#4922) Don't truncate remotely-sourced files on 404

We were 'handling' 404's on remote file content retrieval by returning nil
rather than raising an exception. This caused no content to be written to the
temporary file, but still appeared successful, so the destination file was
overwritten, instead of preserved. Now we just handle 404 like any other
error.

Note that the root cause of these 404s seems to have been #4319, which has been
fixed. However, in the event we do happen to get a 404 here, it's better not to
have code to specifically handle it incorrectly.

Paired-With: Max Martin
Reviewed-By: Matt Robinson

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfb02430e3d3b: Merge remote branch 'brice/tickets/2.6.x/6267' into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU743e03930758: (#4922) Don't truncate remotely-sourced files on 404 (authored by Nick Lewis <nick@puppetlabs.com>).Feb 28 2011, 10:40 PM