# are used without permission. This program is not endorsed or
# sponsored by Three Rings.
-# All calls contain:
-# clientname "ypp-sc-tools"
-# clientversion 2.1-g2e06a26 [from git-describe --tags HEAD]
-# clientfixes "lastpage" [space separated list]
-#
-# Timestamp requests contain:
-# requesttimestamp
-#
-# Uploads contain:
-# ocean canonical mixed case
-# island canonical mixed case
-# data filename=deduped.tsv.gz output of yarrg --tsv
-
-
use strict (qw(vars));
use POSIX;
use MIME::Entity;
use CGI qw/:standard -private_tempfiles/;
-setlocale(LC_CTYPE, "en_GB.UTF-8");
+set_ctype_utf8();
our $now= time; defined $now or die $!;
print header(-status=>'400 Bad commodity update',
-type=>'text/plain',
-charset=>'us-ascii');
- print "Error: $msg\n";
+ print "\nError: $msg\n";
exit 0;
}
my $arches= $oceans{$o{'ocean'}};
fail("unknown ocean") unless $arches;
+parse_info_serverside_ocean($o{'ocean'});
+
my $island_found= 0;
foreach my $islands (values %$arches) {
my $sources= $islands->{$o{'island'}};
unlink $mid or $!==&ENOENT or die "$mid $!";
}
+$o{'instance'}= $ENV{'YARRG_INSTANCE'};
my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
- Subject => $pwd,
+ Subject => $ENV{'YARRG_INSTANCE'},
Type => 'multipart/mixed',
Boundary => '=',
'Message-ID' => $mid,