Can't use '/' in Role Name

nisguy - December 22, 2006 - 18:20
Project:User List
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Hello,
Great module, thanks for providing it.

I had a role named 'Supervisors/Leads' setup in my access control and when I tried to provide a userlist for my role the tab wouldn't work properly. The url printed as http://www.sitename.com/userlist/roles/Supervisors/Leads, which doesn't work.

So, I renamed the role to 'Supervisors & Leads'. The resulting url was http://www.sitename.com/userlist/roles/Supervisors_%2526_Leads, which did work.

#1

deekayen - May 6, 2008 - 16:01
Status:active» won't fix

I created a role named "author/writer" and then tried to debug it. PHP's urlencode() and rawurlencode() functions won't parse out the / since in URL syntax it's a valid directory divider and it can't really know about Drupal's clean URL replacements in .htaccess. The proper replacement like you did for the slash is %2f which breaks Drupal's URL rewrite in .htaccess and then doesn't even get picked up to be parsed by Drupal. The end result is the bland Apache 404 page (not even Drupal's clean 404) because it actually looks for that directory on the server.

userlist/roles/author%2fwriter

In the shadow of that URL, I'm saying don't put slashes in your roles.

#2

deekayen - May 6, 2008 - 16:22
Status:won't fix» duplicate

http://drupal.org/node/98708

Can probably edit the module to use role ID numbers instead of text in the URL.

 
 

Drupal is a registered trademark of Dries Buytaert.