Bug Tracker

Modify

Ticket #9682 (closed bug: fixed)

Opened 23 months ago

Last modified 14 months ago

Ajax retry fetches the wrong URL

Reported by: niyazpk Owned by: jaubourg
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

When I do a retry of an ajax request using $.ajax(this) the new URL includes the items in the data parameter and so the URL is different for the retry.

Test case printing the URLs in each retry:  http://jsfiddle.net/niyazpk/Fqahn/5/

Change History

comment:1 Changed 23 months ago by addyosmani

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to ajax

Reproduced with jQuery Git:  http://jsfiddle.net/Fqahn/6/

comment:2 Changed 23 months ago by jaubourg

  • Owner set to jaubourg
  • Status changed from open to assigned

comment:3 Changed 23 months ago by jaubourg

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixes #9682. Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.

Changeset: e83fcdcb02d676d91d764a58f7e8d2eb1c95de69

comment:4 Changed 23 months ago by niyazpk

Stupid question: Won't this fix break this.data calls in the retry flow?

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.