You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Phil Zampino (JIRA)" <ji...@apache.org> on 2018/04/02 18:44:00 UTC
[jira] [Resolved] (KNOX-1214) Service Discovery : If the provider
xml is configured with attributes for param tag , then the xml is not read
properly
[ https://issues.apache.org/jira/browse/KNOX-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Zampino resolved KNOX-1214.
--------------------------------
Resolution: Information Provided
Assignee: Phil Zampino
> Service Discovery : If the provider xml is configured with attributes for param tag , then the xml is not read properly
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: KNOX-1214
> URL: https://issues.apache.org/jira/browse/KNOX-1214
> Project: Apache Knox
> Issue Type: Bug
> Affects Versions: 0.14.0
> Reporter: J.Andreina
> Assignee: Phil Zampino
> Priority: Critical
> Fix For: 1.1.0
>
> Attachments: provider.xml, ui.xml
>
>
> If the provider xml is configured with attributes for param tag , then the xml is not read properly
> For example configured as below for provider.xml
> {noformat}
> <gateway>
> <provider>
> <role>authentication</role>
> <name>ShiroProvider</name>
> <enabled>true</enabled>
> <param name="sessionTimeout" value="30"/>
> </provider>
> </gateway>
> {noformat}
> instead of configuring as child for param nodes as below
> {noformat}
> <gateway>
> <provider>
> <role>authentication</role>
> <name>ShiroProvider</name>
> <enabled>true</enabled>
> <param>
> <name>sessionTimeout</name>
> <value>30</value>
> </param>
> </provider>
> </gateway>
> {noformat}
> {color:red}Generated Topology content{color}
> {noformat}
> <topology>
> <generated>true</generated>
> <gateway>
> <provider>
> <role>authentication</role>
> <name>ShiroProvider</name>
> <enabled>true</enabled>
> <param>
> <name>null</name>
> <value>null</value>
> </param>
> </provider>
> </gateway>
> {noformat}
> {color:red}Note:{color}
> In the feature documentation also "name" and "value" are mentioned as attributes for param tag.
> *Log:*
> {noformat}
> 2018-03-19 06:44:31,662 ERROR env.EnvironmentLoader (EnvironmentLoader.java:initEnvironment(146)) - Shiro environment initialization failed
> org.apache.shiro.config.ConfigurationException: Shiro INI configuration was either not found or discovered to be empty/unconfigured.
> at org.apache.shiro.web.env.IniWebEnvironment.init(IniWebEnvironment.java:87)
> at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)
> at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)
> at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)