Results 1 to 2 of 2

Thread: Validation error server side does not result in calling failure function

    You found a bug! We've classified it as TOUCH-4724 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    6

    Default Validation error server side does not result in calling failure function

    Ext version tested:
    • Touch Rev 2.2.1
    Browser versions tested against:
    • Chrome 28
    Description:
    • When calling sync on a store backed by an ajax proxy and the server returns a reply with successproperty set to false, the failure function will not be called, but the success function will be called instead. This is because of a missing code line in [email protected] .
    Possible fix:

    in [email protected]: Replace
    Code:
    if (operation.process(action, resultSet, request, response) === false) {
        this.fireEvent('exception', this, response, operation);
    }
    With:
    Code:
    if (operation.process(action, resultSet, request, response) === false) {    
        me.setException(operation, response); // Added!
        me.fireEvent('exception', this, response, operation);
    }

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •