IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37980


Ignore:
Timestamp:
Mar 17, 2015, 2:43:05 PM (11 years ago)
Author:
bills
Message:

Issue warning that Version 1 postage stamp requests will soon be rejected.
Require email to be set in version 2 requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r37838 r37980  
    117117my_die("REQ_NAME not found in $request_file_name\n", $PS_EXIT_PROG_ERROR)  if (!$req_name);
    118118my_die("wrong EXTVER $extver found in $request_file_name\n", $PS_EXIT_PROG_ERROR) if ($extver ne "1" and $extver ne "2");
     119
     120if ($extver eq "1") {
     121    print STDERR "WARNING WARNING WARNING\n";
     122    print STDERR "Very soon version 1 postage stamp requests will be rejected. Please update your request tables to version 2 format.\n";
     123    print STDERR "Note that EMAIL will not be optional\n";
     124
     125} elsif (!$email) {
     126    my_die("ERROR: Required parameter EMAIL not found in request file header.\n", $PSTAMP_INVALID_REQUEST)
     127}
     128   
    119129
    120130if ($extver >= 2) {
Note: See TracChangeset for help on using the changeset viewer.