Redirects during AJAX requests in debug mode are not processed

Components

Labels

Description

When inside AJAX request, then In-Portal don't perform regular redirect via "Location:" header, since it could break whole ajax request.

Instead of that ajax responce in form "#redirect#new_url_here" is returned. In case, when debug mode is enabled, then responce becomes "#redirect#new_url_here some_debugger_report_part_ here". This prevents proper redirect url to be parsed.

I propose to replace "#redirect#(.*)" regular expression to "#redirect#(.*?)($|
s)" and this way problem will be solved.

Problem ONLY happens, when debug mode is enabled.

Context Information

None

Additional information (do not use)

None

Attachments

3
  • 13 Nov 2010, 06:47 PM
  • 13 Nov 2010, 06:47 PM
  • 13 Nov 2010, 06:47 PM

Activity

Dmitry Andrejev March 30, 2011 at 2:53 PM

Closing, since 5.1.2 release has been released.

Alex January 9, 2011 at 7:38 PM

Fix committed to [b]5.1.x branch/b. Commit Message:

Fixes #0000922: Redirects during AJAX requests in debug mode are not processed

Dmitry Andrejev November 13, 2010 at 10:11 PM

Tested good, please commit.

Fixed

Details

Priority

Assignee

Reporter

Developer

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

Fix versions

Affects versions

Created November 13, 2010 at 6:47 PM
Updated December 30, 2024 at 2:24 AM
Resolved March 30, 2011 at 2:53 PM

Flag notifications