IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2013, 3:42:02 PM (13 years ago)
Author:
eugene
Message:

merged from trunk

Location:
branches/eam_branches/ipp-20130307
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307

  • branches/eam_branches/ipp-20130307/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm

    r34448 r35413  
    5252                    $PSTAMP_NO_OVERLAP
    5353                    $PSTAMP_NOT_AUTHORIZED
     54                    $PSTAMP_UNKNOWN_PROJECT
    5455                    );
    5556our %EXPORT_TAGS = (standard => [@EXPORT_OK]);
     
    101102our $PSTAMP_NO_OVERLAP       = 28;
    102103our $PSTAMP_NOT_AUTHORIZED   = 29;
     104our $PSTAMP_UNKNOWN_PROJECT  = 22;
    103105
    104106
     
    167169    my $fields_output;
    168170    {
    169         my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION USERNAME EMAIL";
     171        my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION EMAIL";
    170172        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    171173            run(command => $command, verbose => $verbose);
     
    187189    if ($extver > 1) {
    188190        $header{ACTION} = $action;
    189         $header{USER} = $username;
    190191        $header{EMAIL} = $email;
    191192    } else {
    192193        $header{ACTION} = $action = "PROCESS";
    193         $header{USERNAME} = 'null';
    194194        $header{EMAIL} = 'null';
    195195    }
    196196
    197     if ($action eq "LIST") {
    198         return (\%header, undef);
    199     } elsif ($action ne "PROCESS") {
    200         die "unexpected request ACTION found: $action in $request_file_name";
     197    if ($action ne "PROCESS" and $action ne 'PREVIEW') {
     198        die "\nunexpected request ACTION found: $action in $request_file_name";
    201199    }
    202200
Note: See TracChangeset for help on using the changeset viewer.