In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
922 [In-Portal CMS] Front End bug report always 2010-11-13 12:47 2011-03-30 09:53
alex  
alex  
normal  
closed 5.1.1-RC1  
fixed  
 
none 5.1.2-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/7f69531694d6d415
Fixes AJAX redirect in debug mode
0
0000922: Redirects during AJAX requests in debug mode are not processed
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.
patch ajax_redirect_fix_core.patch (2,716) 2010-11-13 12:47
http://tracker.in-portal.org/file_download.php?file_id=839&type=bug
patch ajax_redirect_fix_modules.patch (1,563) 2010-11-13 12:47
http://tracker.in-portal.org/file_download.php?file_id=840&type=bug
patch ajax_redirect_fix_themes.patch (1,733) 2010-11-13 12:47
http://tracker.in-portal.org/file_download.php?file_id=841&type=bug
Issue History
2011-03-30 09:53 Dmitry Note Added: 0003344
2011-03-30 09:53 Dmitry Status resolved => closed
2011-01-09 13:38 alex Note Added: 0003188
2011-01-09 13:38 alex Status reviewed and tested => resolved
2011-01-09 13:38 alex Fixed in Version => 5.1.2-B1
2011-01-09 13:38 alex Resolution open => fixed
2011-01-09 13:38 alex Assigned To !COMMUNITY => alex
2011-01-09 13:38 alex Changeset attached 5.1.x r14144
2011-01-09 13:37 alex Changeset attached 1.1.x r14143
2011-01-09 13:37 alex Changeset attached 1.1.x r14142
2011-01-09 13:36 alex Changeset attached 5.1.x r14141
2010-11-13 16:11 Dmitry Note Added: 0002972
2010-11-13 16:11 Dmitry Status needs testing => reviewed and tested
2010-11-13 16:11 Dmitry Description Updated bug_revision_view_page.php?rev_id=614#r614
2010-11-13 12:48 alex Assigned To => !COMMUNITY
2010-11-13 12:48 alex Developer => alex
2010-11-13 12:48 alex Status active => needs testing
2010-11-13 12:47 alex File Added: ajax_redirect_fix_themes.patch
2010-11-13 12:47 alex File Added: ajax_redirect_fix_modules.patch
2010-11-13 12:47 alex File Added: ajax_redirect_fix_core.patch
2010-11-13 12:47 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/7f69531694d6d415
2010-11-13 12:47 alex Change Log Message => Fixes AJAX redirect in debug mode
2010-11-13 12:47 alex New Issue

Notes
(0002972)
Dmitry   
2010-11-13 16:11   
Tested good, please commit.
(0003188)
alex   
2011-01-09 13:38   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000922: Redirects during AJAX requests in debug mode are not processed
(0003344)
Dmitry   
2011-03-30 09:53   
Closing, since 5.1.2 release has been released.