← Back to team overview

mahara-contributors team mailing list archive

[Bug 1333071] Re: htmlpurifier sets different permissions in dataroot

 

** Changed in: mahara
       Status: In Progress => Fix Committed

** Changed in: mahara
    Milestone: None => 1.10.0

** Changed in: mahara
     Assignee: (unassigned) => Simon Coggins (simon-coggins)

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

Title:
  htmlpurifier sets different permissions in dataroot

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  Currently HTML purifier uses its own default directory and file
  permissions when creating files in dataroot, instead of respecting
  those given by $CFG->directorypermissions. That can mean some files
  generated have stricter permissions than specified.

  To reproduce:

  1. Create a config.php file with $cfg->directorypermissions = 0777
  2. Install a mahara site via the command line CLI script
  3. Visit the homepage of the site in a browser
  4. View the dataroot folder and look at the file permissions

  You will notice that most folders have 777 permissions but the
  subdirectories inside htmlpurifier/ have 755.

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


References