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

Unable to login to Admin Console, when web-server is installed on non-default port

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.2-B1
    • Fix Version/s: 5.1.3-B1
    • Component/s: Data Management
    • Labels:
      None
    • Additional information:
      Hide

      Unfortunate side effect is inability to login to Admin Console, since it's uses cookie-based session.

      Also today $_SERVER['HTTP_PORT'] variable is no longer provided to PHP (tested on Apache 1.3, Apache 2.2, PHP 4.4, PHP 5.2.1) and it's being replaced by $_SERVER['SERVER_PORT'] in attached patches.

      Show
      Unfortunate side effect is inability to login to Admin Console, since it's uses cookie-based session. Also today $_SERVER ['HTTP_PORT'] variable is no longer provided to PHP (tested on Apache 1.3, Apache 2.2, PHP 4.4, PHP 5.2.1) and it's being replaced by $_SERVER ['SERVER_PORT'] in attached patches.
    • Change Log Message:
      Fixed non-default port usage, when accessing In-Portal from a web-browser
    • External issue ID:
      993
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      I have In-Portal installation on 8080 port instead of 80 port, which is default.

      Because of that I have to specify port each time I visit website like this: http://www.site-name.com:8080/admin/

      Unfortunate effect of that is that $_SERVER['HTTP_HOST'] variable also contains that port, but since it's used for cookie setting no cookies are set at the end.

      I propose to strip value of PORT constant from end of SERVER_NAME constant (which is set to $_SERVER['HTTP_HOST'] by default). It's also safe for IPv6 protocol.

        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: