Subject: | Artifact Retrieval Issue |
Date: | Fri, 4 Jul 2014 09:52:48 -0400 |
To: | bug-artifactory-client [...] rt.cpan.org |
From: | "Diec, Victor" <victor_diec [...] mitel.com> |
I would like to report a bug/issue that I ahve been experiencing with
Artifactory Client v0.7.4 when using the retrieve_artifact subroutine.
I am not exactly sure whether I am retrieving the content properly but my
current implementation using the perl module looks like this:
my $hash;
$hash =
($client->retrieve_artifact("/debug4/debug4/debug4/debug4-debug4.html"));
open OUTPUT, "> output-from-perl-html.html";
$hash = $hash->{_content};
print OUTPUT $hash;
close OUTPUT;
This works for some files like text files but fails for many things. One
particular thing that I noticed with my current implementation is that if I
reupload the file I retrieved from artifactory, it has a different checksum
than the original. Furthermore, the html file I have shown in the example
above changes. It is originally in english but when I download it using
this method and open it, the language has changed to chinese.
Is there way to retrieve the artifact as is without using a file handle?
--
Victor Diec
Mitel Networks
Email: victor_diec@mitel.com
Phone: 613-592-5660 x72875
--
Victor Diec
Mitel Networks
Email: victor_diec@mitel.com
Phone: 613-592-5660 x72875
--
This e-mail (including any attachments) is for the sole use of the intended
recipient(s) and may contain information that is confidential and/or
protected by legal privilege. Any unauthorized review, use, copy,
disclosure or distribution of this e-mail is strictly prohibited. If you
are not the intended recipient, please notify Mitel immediately and destroy
all copies of this e-mail. Mitel does not accept any liability for breach
of security, error or virus that may result from the transmission of this
message.