← Back to team overview

mahara-contributors team mailing list archive

[Bug 1717861] [NEW] Redirect to incorrect port when sslproxy is on and wwwroot is set

 

Public bug reported:

When you have your mahara behind SSL proxy and have sslproxy enabled, it
redirects to incorrect port when you try to access pages which require
login.

When you get your mahara behind load balancer and nginx proxy on port 81
you get redirected to https://mahara.com:81/user/admin?login when try to
access https://mahara.com/user/admin as not logged in user.

Looks like function get_full_script_path tries to get a port even if
$CFG->wwwroot is set.

** Affects: mahara
     Importance: Undecided
     Assignee: Dmitrii Metelkin (dmitriim)
         Status: New

** Changed in: mahara
     Assignee: (unassigned) => Dmitrii Metelkin (dmitriim)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1717861

Title:
  Redirect to incorrect port when sslproxy is on and wwwroot is set

Status in Mahara:
  New

Bug description:
  When you have your mahara behind SSL proxy and have sslproxy enabled,
  it redirects to incorrect port when you try to access pages which
  require login.

  When you get your mahara behind load balancer and nginx proxy on port
  81 you get redirected to https://mahara.com:81/user/admin?login when
  try to access https://mahara.com/user/admin as not logged in user.

  Looks like function get_full_script_path tries to get a port even if
  $CFG->wwwroot is set.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1717861/+subscriptions


Follow ups