← Back to team overview

mahara-contributors team mailing list archive

[Bug 1534398] [NEW] Clean URLs created during user account creation, do not respect the "nousernames" setting

 

Public bug reported:

See: https://mahara.org/interaction/forum/topic.php?id=7479

If you activate the "Never display usernames" site setting, and turn on
clean URLs, the clean URL for new users' profile pages will still
contain their username.

If you do "regerenate clean URLs", however, the newly created clean URLs
will *not* have the usernames.

This is because the method regenerateurls_submit() in cleanurls.php
respects the $CFG->nousernames setting, but the other places that
generate clean URLs on account creation do not:

- User->create() in auth/user.php
- create_user() in lib/user.php

** Affects: mahara
     Importance: Medium
         Status: Triaged

** Affects: mahara/1.10
     Importance: Medium
         Status: Triaged

** Affects: mahara/15.04
     Importance: Medium
         Status: Triaged

** Affects: mahara/15.10
     Importance: Medium
         Status: Triaged

** Affects: mahara/16.04
     Importance: Medium
         Status: Triaged

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

Title:
  Clean URLs created during user account creation, do not respect the
  "nousernames" setting

Status in Mahara:
  Triaged
Status in Mahara 1.10 series:
  Triaged
Status in Mahara 15.04 series:
  Triaged
Status in Mahara 15.10 series:
  Triaged
Status in Mahara 16.04 series:
  Triaged

Bug description:
  See: https://mahara.org/interaction/forum/topic.php?id=7479

  If you activate the "Never display usernames" site setting, and turn
  on clean URLs, the clean URL for new users' profile pages will still
  contain their username.

  If you do "regerenate clean URLs", however, the newly created clean
  URLs will *not* have the usernames.

  This is because the method regenerateurls_submit() in cleanurls.php
  respects the $CFG->nousernames setting, but the other places that
  generate clean URLs on account creation do not:

  - User->create() in auth/user.php
  - create_user() in lib/user.php

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


Follow ups