Skip Menu |

This queue is for tickets about the Nexus-Uploader CPAN distribution.

Report information
The Basics
Id: 130790
Status: resolved
Priority: 0/
Queue: Nexus-Uploader

People
Owner: SVW [...] cpan.org
Requestors: SVW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: uploads filename instead of file content
$Nexus::Uploader::VERSION = '1.0.0'; My tests have shown that the uploader uploads the filename of an archive but not its content to Nexus. Replacing $Nexus->PUT( $artefact_URL, $archive, $headers ); with use File::Slurp; my $content = read_file( $archive ); $Nexus->PUT( $artefact_URL, $content, $headers ); has fixed the problem.
On Wed Oct 23 05:22:45 2019, SVW wrote: Show quoted text
> > $Nexus::Uploader::VERSION = '1.0.0'; > > My tests have shown that the uploader uploads the filename of an > archive but not its content to Nexus. Replacing > > $Nexus->PUT( $artefact_URL, $archive, $headers ); > > with > > use File::Slurp; > my $content = read_file( $archive ); > $Nexus->PUT( $artefact_URL, $content, $headers ); > > has fixed the problem.
Hello Sven, Thanks for your report; I will take a look at this today. Regards Brad
fix implemented in version 1.0.1