Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1873

JavaScript execution exception is not logged

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3.4, 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      If there is an error durring the ajax javascript execution, exception is not logged, that is a critical issue when you are developing and tracking errors.

      Tapestry.js ajaxRequest @453:

      finalOptions.get('onException').call(this, response);

      Should be:

      finalOptions.get('onException').call(this, response, e);

      Exception's stacktrace should be also logged otherwise there is no way to tell were did it came from.

      Tapestry.js ajaxExceptionHandler @371:

      Tapestry.debug(Tapestry.Messages.ajaxFailure + exception, response);
      if(exception.stack)

      { Tapestry.debug(exception.stack); }

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              denis.stepanov Denis Stepanov
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: