Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User keypoint's Avatar
    Join Date
    Oct 2007
    Location
    Bucharest, Romania
    Posts
    69
    Vote Rating
    1
    keypoint is on a distinguished road

      0  

    Default [FIXED][3.0rc2] Retrying on an Ext.Direct form submit changes transaction type

    [FIXED][3.0rc2] Retrying on an Ext.Direct form submit changes transaction type


    Hey,

    Here's a quick bug description:
    Set a form to submit using an Ext.Direct call (api: {submit: ...})
    The form sends the request to the server in the proper format (POST request). If the request gets a 404 response, it will retry, but the new request will no longer be a POST transaction but a regular Ajax one, losing the form values too.

    Sample:
    Initial request:
    PHP Code:
    extAction    Account
    extMethod    login
    extTID    9
    extType    rpc
    extUpload    false
    tbPassword    kent
    tbUsername    gigi 
    Retry:
    PHP Code:
    {"action":"Account","method":"login","type":"rpc","tid":9

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Thanks for your report.

    Description confirmed as of rev4257.

    To reproduce this I took the examples/direct/direct-form example and loaded it up. Then I renamed the router.php to something else to create a fictitious 404 before hitting the 'submit' button.

  3. #3
    Sencha User keypoint's Avatar
    Join Date
    Oct 2007
    Location
    Bucharest, Romania
    Posts
    69
    Vote Rating
    1
    keypoint is on a distinguished road

      0  

    Default


    Thanks

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,050
    Vote Rating
    657
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I've just committed a fix, can you please test it out?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    That worked for my test case. One reattempt was made after the first 404 and the transaction went out in same format.

  6. #6
    Sencha User keypoint's Avatar
    Join Date
    Oct 2007
    Location
    Bucharest, Romania
    Posts
    69
    Vote Rating
    1
    keypoint is on a distinguished road

      0  

    Default


    I can't test it. Lacking SVN access

  7. #7
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,050
    Vote Rating
    657
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's ok, MJ has tested it out. Marking this one as fixed.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2