OpenLayers OpenLayers

Ticket #534 (closed feature: fixed)

Opened 1 year ago

Last modified 11 months ago

Ajax.js catches exceptions and swallows them

Reported by: crschmidt Assigned to:
Priority: major Milestone: 2.5 Release
Component: general Version: SVN
Keywords: Cc:
State:

Description

Ajax.js silently catches exceptions and swallows them. The result of this is that we get many many more questions than we should about the ProxyHost issue, because the exception that the browser throws never gets delivered to the user.

This also makes debugging post-request functions difficult, because exceptions are also swallowed in the handlers for those functions.

By removing the try/except blocks from Ajax.js, or making them default to reporting in some way, we may be able to decrease the number of questions we get about Ajax functionality not working.

This problem has existed in all versions of OpenLayers, but it is becoming more and more of a problem as we move further towards encouraging use of WFS servers and the like. Solving it sooner rather than later seems to be a good idea.

Attachments

Ajax.exception.patch (0.5 kB) - added by fredj on 05/30/07 04:15:07.
throw the exception if no onException callback is set

Change History

05/30/07 04:15:07 changed by fredj

  • attachment Ajax.exception.patch added.

throw the exception if no onException callback is set

05/30/07 04:15:31 changed by fredj

  • keywords set to review.

06/07/07 14:16:21 changed by sderle

  • status changed from new to closed.
  • resolution set to fixed.

applied as #3283. thanks, Fred.

07/05/07 17:03:32 changed by euzuro

  • keywords deleted.