Added conversion of URLs ending in '*' to the ant '**' form.
This commit is contained in:
parent
9e1a773cc7
commit
6f467def90
|
@ -246,9 +246,14 @@
|
||||||
|
|
|
|
||||||
| In the case of role-name='*', signifying "any authenticated role", the complete list of roles
|
| In the case of role-name='*', signifying "any authenticated role", the complete list of roles
|
||||||
| defined in the web.xml file is used.
|
| defined in the web.xml file is used.
|
||||||
|
|
|
||||||
|
| URLs which end in a wild card, will be converted to end in the recursive path version '**',
|
||||||
|
| e.g. /private/* becomes /private/**
|
||||||
-->
|
-->
|
||||||
<xsl:template match="security-constraint">
|
<xsl:template match="security-constraint">
|
||||||
<xsl:value-of select="web-resource-collection/url-pattern"/>
|
<xsl:variable name="url" select="web-resource-collection/url-pattern"/>
|
||||||
|
<xsl:value-of select="$url"/>
|
||||||
|
<xsl:if test="substring($url, string-length($url)) = '*'">*</xsl:if>
|
||||||
<xsl:text>=</xsl:text>
|
<xsl:text>=</xsl:text>
|
||||||
<xsl:for-each select="./auth-constraint/role-name">
|
<xsl:for-each select="./auth-constraint/role-name">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
|
Loading…
Reference in New Issue