In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
300 [In-Portal CMS] Front End bug report sometimes 2009-09-16 06:07 2009-10-03 07:57
alex  
alex  
normal  
closed 5.0.0  
fixed  
 
none 5.0.1  
0
0000300: Redirect loop (on front-end) while using "View in Browse Mode" link
All actions should be done in catalog in administrative console.

1. Create any section with Pending status under Directory section.
2. Place Active/Pending link there.
3. Click on "View in Browse Mode" link.

There will be redirect loop and that is guaranteed by 2 circumstances:
1. when not owner is visiting pending link, then he is redirected to no permission template.
2. When viewing pending/disabled category then he is redirected to no permission template.

During redirect to no permission template category is kept, and is asked on no permission template itself resulting infinite redirect loop.
I see two ways how to fix this:
1. somehow to predict, that next redirect will create a loop with previous one (kind of hard, otherwise would be fixed some time ago).
2. don't perform redirect to "no permission" template and allow admin to see all kinds of data, that normally would lead to "no permission" template redirect.

2nd case won't affect direct permission checking inside tags, where redirect is not performed. Also for 2nd case in all places where redirect to no permission template could take place we should not perform it and continue with data processing like in case if user actually has permission to perform requested action.
Issue History
2009-10-03 07:57 administrator Note Added: 0000738
2009-10-03 07:57 administrator Status resolved => closed
2009-09-16 13:24 alex Fixed in Version => 5.0.1
2009-09-16 13:24 alex Note Added: 0000468
2009-09-16 13:24 alex Status reviewed and tested => resolved
2009-09-16 13:24 alex Resolution open => fixed
2009-09-16 13:24 alex Changeset attached 5.0.x r12536
2009-09-16 10:43 Dmitry Target Version 5.0.2 => 5.0.1
2009-09-16 09:54 Dmitry Target Version => 5.0.2
2009-09-16 09:53 Dmitry Note Added: 0000454
2009-09-16 09:53 Dmitry Assigned To => alex
2009-09-16 09:53 Dmitry Status active => reviewed and tested
2009-09-16 06:07 alex New Issue

Notes
(0000454)
Dmitry   
2009-09-16 09:53   
I believe we should implement 2nd option now and spend more time in future release on 1st option which would be useful to everyone.
(0000468)
alex   
2009-09-16 13:24   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000300: Redirect loop (on front-end) while using "View in Browse Mode" link
(0000738)
administrator   
2009-10-03 07:57   
Closing issues from 5.0.1 version, because version was already released.