[mapserver-dev] Mapserver 5.6.0-beta5 perl bug

Andy Colson andy at squeakycode.net
Tue Nov 17 10:02:50 EST 2009


> Andy Colson wrote:
>> Hi all,
>>
>> I'm not sure, but might have a little problem.  I have this code, 
>> which I'm almost positive used to work:
>>
>> $x = $map->OWSDispatch( $owreq );
>> if ($x)
>> {
>>     print STDERR "ERROR: OWSDispatch: $x\n";
>>     my $errObj = new mapscript::errorObj();
>>     while ($errObj) {
>>         print STDERR "ERROR: 
>> $errObj->{code}:$errObj->{message}:$errObj->{routine} \n";
>>                $errObj = $errObj->next();
>>     }
>> }
>>
>> I had a problem with my mapfile and should have gotten errors, but my 
>> error log just contained:
>>
>> ERROR: OWSDispatch: 1
>> ERROR: 0::
>> ERROR: OWSDispatch: 1
>> ERROR: 0::
>> ERROR: OWSDispatch: 1
>> ERROR: 0::
>>
>> There is an error, but there is nothing in mapscript::errorObj.  Did 
>> usage change or anything?
>>
>> -Andy
> 
> 

Daniel Morissette wrote:
 > Nothing should have changed, the function should still return
 > MS_SUCCESS(0)/MS_FAILURE(1) if it finds a valid OWS request, or
 > MS_DONE(2) if it the request is not recognized as a valid OWS request.
 >
 > It's always possible that something changed or got broken in one of the
 > handlers, but we'd need a way to reproduce. I'd suggest you file a
 > ticket with a testcase to reproduce the issue (sample request and
 > whatever mapfile/data is required to reproduce).
 >
 > Daniel
 >
 >

Shoot, I made a simple perl cgi app and it worked correctly.  My real 
app is using mod_perl however, so I'll work up a little test case for 
that.

-Andy


More information about the mapserver-dev mailing list