Issue 46 in piwi: Navigation is not displayed if there is a space in the roles in site.xml

1 view
Skip to first unread message

pi...@googlecode.com

unread,
Nov 18, 2010, 5:17:01 AM11/18/10
to piwi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Milestone-Unscheduled

New issue 46 by Sebastian.Pabel: Navigation is not displayed if there is a
space in the roles in site.xml
http://code.google.com/p/piwi/issues/detail?id=46

What steps will reproduce the problem?
1. Create a site with at least 2 roles and put a space between comma and
the second role (e.g roles="admin, editor")
2. Login as the second role

What is the expected output? What do you see instead?
I expected the navigation, but i see nothing

What version of the product are you using? On what operating system?
Milestone 0.1.0

Please provide any additional information below.
The roles the 'SimpleTextNavigationGenerator' gets from the site element
contains spaces. So the in_array($role, $roles) function of the
SampleRoleProvider returns false.

pi...@googlecode.com

unread,
Nov 18, 2010, 8:17:21 AM11/18/10
to piwi...@googlegroups.com

Comment #1 on issue 46 by Sebastian.Pabel: Navigation is not displayed if
there is a space in the roles in site.xml
http://code.google.com/p/piwi/issues/detail?id=46

I found the problem.

Attached the patch in this comment.

Attachments:
SiteElement.patch 405 bytes

pi...@googlecode.com

unread,
Nov 21, 2010, 7:10:17 AM11/21/10
to piwi...@googlegroups.com
Updates:
Status: Fixed
Owner: danielpalme82

Comment #2 on issue 46 by danielpalme82: Navigation is not displayed if

there is a space in the roles in site.xml
http://code.google.com/p/piwi/issues/detail?id=46

The issue has been fixed

Reply all
Reply to author
Forward
0 new messages