← Back to team overview

mahara-contributors team mailing list archive

[Bug 832409] A change has been merged

 

Reviewed:  https://reviews.mahara.org/611
Committed: http://gitorious.org/mahara/mahara/commit/e666019aad5b4bdacd2374f9b24276197a91b2d4
Submitter: Francois Marier (francois@xxxxxxxxxxxxxxx)
Branch:    master

commit e666019aad5b4bdacd2374f9b24276197a91b2d4
Author: I��aki Arenaza <iarenaza@xxxxxxxxxxxxx>
Date:   Wed Aug 24 00:19:00 2011 +0200

    Don't hardcode new location in print_export_footer()
    
    Fixes bug #832409
    
    Change-Id: I8ea6c381f9203d39b518b738c0d2d7d6219cf349
    Signed-off-by: I��aki Arenaza <iarenaza@xxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/832409

Title:
  "Export users to Leap2A files" fails if indiviual users are specified

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  In 1.4_STABLE, when we try to export users to Leap2A file (in
  /admin/users/bulkexport.php), if we list indiviual users instead of
  leaving the "usernanames to export" list empty, we get a 'Not Found'
  in the progress bar and no download is offered. We also get errors
  similar to these:

  [Wed Aug 24 00:43:25 2011] [error] [client ::1] [INF] 38 (admin/users/bulkdownload.php:218) Exported 3 users to /usr/src/mahara/uploaddir/export/1/1314139405/mahara-bulk-export-1314139405.zip, referer: http://localhost/mahara-14/admin/users/bulkexport.php
  [Wed Aug 24 00:43:25 2011] [error] [client ::1] script '/var/www/mahara-14/admin/users/download.php' not found or unable to stat, referer: http://localhost/mahara-14/admin/users/bulkdownload.php

  In master, if we leave the "usernanames to export" list empty, we get
  a 'Not Found' in the progress bar and no download is offered. If we
  specify a valid user and enter a new line character, the progress bar
  doesn't display anything but the download is offered. If we specify a
  valid user but don't enter a new line character, we get a 'Not Found'
  in the progress bar and no download is offered. We also get similar
  errors to the above ones.

  The problem is in lib/htmloutput.php, function print_export_footer(),
  that hardcodes the new document location to 'download.php', while
  bulkexport.php needs to redirect to 'bulkdownload.php'

  Proposed (and tested) fixes will be sent to reviews.mahara.org in a
  few minutes.

  Saludos.
  Iñaki.

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


References