← Back to team overview

mahara-contributors team mailing list archive

[Bug 832409] Re: "Export users to Leap2A files" fails if indiviual users are specified

 

Changing the milestone back to 1.5.0 since the bug is in a not-very-
official part of the code that is not linked to from the UI. (Also it's
not a regression.)

** Changed in: mahara
    Milestone: 1.4.1 => 1.5.0

-- 
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:
  Triaged

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