Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3554 closed enhancement (fixed)

Ability to get the error message and code of an OWS exception

Reported by: iap Owned by: aboudreault
Priority: normal Milestone:
Component: MapScript-PHP Version: unspecified
Severity: normal Keywords:
Cc: assefa, dmorissette

Description

At the moment if an OWS service exception occurs there is not way to find out what was that exception from PHP code.

For example there is a WMS request to the server with an invalid "EXCEPTION" parameter for version 1.3.0 which returns a GML with proper error message and code. It would be nice to catch/get this error (message a) and retry with a default request parameter for exception.

As an idea, the OWS service exception code and message are pushed to the MapServer ErrorObj.

Change History (5)

comment:1 by aboudreault, 14 years ago

Cc: assefa added

assefa, at the end of the ms*Exception() functions of OWS services, there is a call to msResetErrorList(), which remove the errors from the list and prevent users to get the error messages in mapscript. Do you have any objection to remove those calls?

comment:2 by assefa, 14 years ago

Cc: dmorisstte added

No objection. I am wondering why that was done before but can not think of any issues by removing it.

comment:3 by aboudreault, 14 years ago

Resolution: fixed
Status: newclosed

Fixed and committed in r10556.

comment:4 by assefa, 14 years ago

Cc: dmorissette added; dmorisstte removed

this has I believe undesired effect #3571. I also originally misspelled Daniel's name in the cc column.

comment:5 by aboudreault, 14 years ago

Ticket #3571 has been fixed in r10643. The fix does not affect this ticket.

Note: See TracTickets for help on using tickets.