Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-250

Redirect loop (on front-end) while using "View in Browse Mode" link

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.1
    • Component/s: Front End
    • Labels:
      None
    • Additional information:
      Hide

      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.

      Show
      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.
    • External issue ID:
      300
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              alex Alex
              Reporter:
              alex Alex
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: