← Back to team overview

mahara-contributors team mailing list archive

[Bug 1446426] [NEW] Bulk user export page has a redirect that doesn't work with subdirectories.

 

Public bug reported:

This is a bug that shows up after you have successfully downloaded the
bulk export from admin/users/bulkexport.php.

To replicate:

1. Set up your Mahara site so there is a subdirectory in its wwwroot. (e.g.: http://example.com/mahara/)
2. Go to http://example.com/mahara/admin/users/bulkexport.php and bulk export some users.

Expected result: You download the ZIP file, and are redirected back to http://example.com/mahara/admin/users/bulkexport.php
Actual result: You download the ZIP file, but are redirected to the broken URL http://example.com/admin/users/bulkexport.php

The problem is that the success redirect URL is a relative URL
(/admin/users/bulkexport.php), when it needs to be an absolute URL
starting with $CFG->wwwroot.

** Affects: mahara
     Importance: Medium
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/15.04
     Importance: Medium
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress

** Affects: mahara/15.10
     Importance: Medium
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress


** Tags: bulkexport

** Also affects: mahara/15.04
   Importance: Undecided
       Status: New

** Also affects: mahara/15.10
   Importance: Medium
     Assignee: Aaron Wells (u-aaronw)
       Status: In Progress

** Changed in: mahara/15.04
    Milestone: None => 15.04.1

** Changed in: mahara/15.10
    Milestone: 15.04.1 => 15.10.0

** Changed in: mahara/15.04
     Assignee: (unassigned) => Aaron Wells (u-aaronw)

** Changed in: mahara/15.04
   Importance: Undecided => Medium

** Changed in: mahara/15.04
       Status: New => In Progress

-- 
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/1446426

Title:
  Bulk user export page has a redirect that doesn't work with
  subdirectories.

Status in Mahara ePortfolio:
  In Progress
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  In Progress

Bug description:
  This is a bug that shows up after you have successfully downloaded the
  bulk export from admin/users/bulkexport.php.

  To replicate:

  1. Set up your Mahara site so there is a subdirectory in its wwwroot. (e.g.: http://example.com/mahara/)
  2. Go to http://example.com/mahara/admin/users/bulkexport.php and bulk export some users.

  Expected result: You download the ZIP file, and are redirected back to http://example.com/mahara/admin/users/bulkexport.php
  Actual result: You download the ZIP file, but are redirected to the broken URL http://example.com/admin/users/bulkexport.php

  The problem is that the success redirect URL is a relative URL
  (/admin/users/bulkexport.php), when it needs to be an absolute URL
  starting with $CFG->wwwroot.

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


Follow ups

References