[jboss-jira] [JBoss JIRA] (WFLY-3232) XTS coordinator URL is not initialised correctly
Gytis Trikleris (JIRA)
issues at jboss.org
Tue Apr 8 10:04:14 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gytis Trikleris updated WFLY-3232:
----------------------------------
Description:
XTS subsystem uses wrong attribute names to get coordinator URL from the server configuration. Therefore it always uses default values.
How it is implemented:
{code}
final String coordinatorURL = model.get(CommonAttributes.XTS_ENVIRONMENT).hasDefined(ModelDescriptionConstants.URL)
? model.get(CommonAttributes.XTS_ENVIRONMENT, ModelDescriptionConstants.URL).asString() : null;
{code}
How it should be implemented:
{code}
final String coordinatorURL = model.hasDefined(ModelDescriptionConstants.URL)
? ENVIRONMENT_URL.resolveModelAttribute(context, model).asString() : null;
{code}
was:
XTS subsystem uses wrong attribute names to get coordinator URL from the server configuration, therefore it always uses default values.
How it is implemented:
{code}
final String coordinatorURL = model.get(CommonAttributes.XTS_ENVIRONMENT).hasDefined(ModelDescriptionConstants.URL)
? model.get(CommonAttributes.XTS_ENVIRONMENT, ModelDescriptionConstants.URL).asString() : null;
{code}
How it should be implemented:
{code}
final String coordinatorURL = model.hasDefined(ModelDescriptionConstants.URL)
? ENVIRONMENT_URL.resolveModelAttribute(context, model).asString() : null;
{code}
> XTS coordinator URL is not initialised correctly
> ------------------------------------------------
>
> Key: WFLY-3232
> URL: https://issues.jboss.org/browse/WFLY-3232
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: XTS
> Reporter: Gytis Trikleris
> Assignee: Gytis Trikleris
> Priority: Critical
> Fix For: 8.0.1.Final
>
>
> XTS subsystem uses wrong attribute names to get coordinator URL from the server configuration. Therefore it always uses default values.
> How it is implemented:
> {code}
> final String coordinatorURL = model.get(CommonAttributes.XTS_ENVIRONMENT).hasDefined(ModelDescriptionConstants.URL)
> ? model.get(CommonAttributes.XTS_ENVIRONMENT, ModelDescriptionConstants.URL).asString() : null;
> {code}
> How it should be implemented:
> {code}
> final String coordinatorURL = model.hasDefined(ModelDescriptionConstants.URL)
> ? ENVIRONMENT_URL.resolveModelAttribute(context, model).asString() : null;
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list