| 136 | | <!-- Making sure EAR deployer depends on HTTPS invoker --> |
|---|
| | 136 | <!-- We remove attribute[InvokerURLPrefix] as redundant --> |
|---|
| | 137 | <xsl:template match="mbean/attribute[@name='InvokerURLPrefix']"> |
|---|
| | 138 | <xsl:comment>Nuxeo patch: removing attribute[InvokerURLPrefix]</xsl:comment> |
|---|
| | 139 | </xsl:template> |
|---|
| | 140 | |
|---|
| | 141 | <!-- We remove attribute[InvokerURLPrefix] as evil --> |
|---|
| | 142 | <xsl:template match="mbean/attribute[@name='UseHostName']"> |
|---|
| | 143 | <xsl:comment>Nuxeo patch: removing attribute[UseHostName]</xsl:comment> |
|---|
| | 144 | </xsl:template> |
|---|
| | 145 | |
|---|
| | 146 | <!-- We replace attribute[InvokerURLSuffix] and attribute[InvokerURL] with proper attribute[InvokerURL] --> |
|---|
| | 147 | <xsl:template match="mbean/attribute[@name='InvokerURLSuffix']"> |
|---|
| | 148 | <xsl:comment>Nuxeo patch: replacing attribute[InvokerURLSuffix]</xsl:comment><xsl:text> |
|---|
| | 149 | </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('https://${https.hostname}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> |
|---|
| | 150 | </xsl:template> |
|---|
| | 151 | |
|---|
| | 152 | <!-- We replace attribute[InvokerURLSuffix] and attribute[InvokerURL] with proper attribute[InvokerURL] --> |
|---|
| | 153 | <xsl:template match="mbean/attribute[@name='InvokerURL']"> |
|---|
| | 154 | <xsl:comment>Nuxeo patch: replacing attribute[InvokerURL]</xsl:comment><xsl:text> |
|---|
| | 155 | </xsl:text><attribute name="InvokerURL"><xsl:value-of select="concat('https://${https.hostname}/invoker/',substring-after(text(),'/invoker/'))"/></attribute> |
|---|
| | 156 | </xsl:template> |
|---|
| | 157 | |
|---|
| | 158 | <!-- Making sure EAR deployer depends on HTTPS invoker --> |
|---|