← Back to team overview

mahara-contributors team mailing list archive

[Bug 813905] Re: Trailing Spaces in Folder Names effect HTML Export

 

We should trim folder names before they are created in Mahara to avoid
this problem entirely.

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

Title:
  Trailing Spaces in Folder Names effect HTML Export

Status in Mahara ePortfolio:
  Triaged

Bug description:
  Found an issue with a student's HTML export where files would be
  present in the zip file, but the zip extractor (in this case WinRAR)
  reported the following:

  !   C:\Users\gagesw\Downloads\Mahara\mahara-export-html-user230-1311221980.zip: Cannot create portfolio-for-gagesw\files\file\Here is a folder with trailing spaces  \title-vidmaster.gif
      The system cannot find the path specified.
  !   C:\Users\gagesw\Downloads\Mahara\mahara-export-html-user230-1311221980.zip: Attempting to correct the invalid file name
  !   C:\Users\gagesw\Downloads\Mahara\mahara-export-html-user230-1311221980.zip: Renaming portfolio-for-gagesw\files\file\Here is a folder with trailing spaces

  While this fixes the issue, the HTML pages are generated before the
  zip is even created so all its references to files in the folder will
  be broken.

  Regarding the folder itself in the file area, the user can fix the
  folder name but they may not even notice the issue due to the trailing
  spaces being concatenated in the links (see attached image).

  This issue does not effect the file share as files/folders are given
  numerical references.

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


References