[mapguide-trac] #1575: Can't remove user from the role
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Dec 16 23:28:15 EST 2010
#1575: Can't remove user from the role
----------------------------+-----------------------------------------------
Reporter: ChristineBao | Owner: Christine Bao
Type: defect | Status: new
Priority: high | Milestone: 2.2
Component: Map Admin | Version: 2.1.0
Severity: critical | Keywords:
External_id: 1374623 |
----------------------------+-----------------------------------------------
Comment(by ChristineBao):
== Tech assessment: ==
This is caused by the xQuery not correct. The role xml in side
MgSiteResourceContents.dbxml is:
{{{
<?xml version="1.0" encoding="UTF-8" standalone="no"?><Role
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Role-1.0.0.xsd">
<Description>Administrator role</Description>
<Users>
<User>
<Name>Administrator</Name>
</User>
<User>
<Name>test</Name>
</User>
</Users>
<Groups>
</Groups>
</Role>
}}}
According to the xml structure, modify the xQuery string to something
like:[[BR]]
{{{
delete nodes collection('MgSiteResourceContents.dbxml')/Role[starts-
with(Description, "Administrator")]/Users/User[Name="test"]
}}}
Test in MapGuide and pass.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1575#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list