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

Don't call "adm:OnBeforeShutdown" event, unless Application is fully initialized

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-B2
    • Fix Version/s: 5.2.0-B3
    • Component/s: Data Management
    • Labels:
      None

      Description

      When mod-rewrite mode isn't enabled all links created by In-Portal looks like http://www.domain.tld/?env=sid-template:m-.....
      When mod-rewrite mode is enabled same link would look like http://www.domain.tld/template.html?sid=sid.

      If you started to use In-Portal with disabled mod-rewrite mode and then, after some time, enabled it you might get into situation when visitors are coming on website using both old (with ?env=) and new (without ?env=) style links.
      This usually happens, when visitors (or spiders) have bookmarked links when mod-rewrite was disabled.

      To solve that problem In-Portal does automatic redirect to mod-rewrite equivalent of every non mod-rewrite link it encounters.

      And during that redirect happens fatal error caused by accessing kApplication::Session attribute from kApplication::RecallVar method, since session isn't yet initialized when In-Portal decides to do that redirect.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: