[ 
https://issues.apache.org/jira/browse/ARTEMIS-2310?focusedWorklogId=232919&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-232919
 ]

ASF GitHub Bot logged work on ARTEMIS-2310:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Apr/19 14:50
            Start Date: 25/Apr/19 14:50
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on pull request #2640: 
ARTEMIS-2310 support system prop sub in xincludes
URL: https://github.com/apache/activemq-artemis/pull/2640#discussion_r278589112
 
 

 ##########
 File path: 
artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationTest.java
 ##########
 @@ -64,6 +64,13 @@
 
 public class FileConfigurationTest extends ConfigurationImplTest {
 
+   static {
 
 Review comment:
   Please, do not leave stuff after tests.
   
   There's a rule on ActiveMQTestBae to cleanup properties, and that's probably 
why your test failed here.
   
   So, you should use a BeforeClass and AFterClass to cleanup such thing.
   
   
   I'm adding here and squashing the change as yours.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 232919)
    Time Spent: 20m  (was: 10m)

> Variable substitution does not happen with xinclude'd sub files
> ---------------------------------------------------------------
>
>                 Key: ARTEMIS-2310
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2310
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.7.0
>            Reporter: SL
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The variable substitution mechanism which set values from system properties 
> only works for the root configuration document.
> when fragments are imported from xinclude, the placeholder stays untouched
> sample
> {code:xml|title=test.broker.xml}
> (...)
>               <acceptors xmlns="urn:activemq:core">
>                       <acceptor name="in-vm">vm://1</acceptor>
>                       <acceptor 
> name="netty-ssl">tcp://localhost:6161?protocols=CORE,OPENWIRE,AMQP;sslEnabled=true;needClientAuth=true;keyStorePath=localhost.jks;keyStorePassword=*******;trustStorePath=CA.jks;trustStorePassword=*********;needClientAuth=true;forceSSLParameters=true;enabledCipherSuites=TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384;enabledProtocols=${tls.protocols}</acceptor>
>               </acceptors>
> (...)
> {code}
> produces
> {noformat}
> 15:57:42.487 DEBUG o.a.activemq.artemis.utils.XMLUtil - replacing 
> ${tls.protocols} with TLSv1.3,TLSv1.2
> 15:57:42.965 DEBUG o.a.a.a.c.s.impl.ActiveMQServerImpl - Starting server 
> ActiveMQServerImpl::
> {noformat}
> when replaced with
> {code:xml|title=test-broker.xml}
>           <xi:include href="test-acceptors.xml"/>
> {code}
> {code:xml|title=test-acceptors.xml}
>               <acceptors xmlns="urn:activemq:core">
>                       <acceptor name="in-vm">vm://1</acceptor>
>                       <acceptor 
> name="netty-ssl">tcp://localhost:6161?protocols=CORE,OPENWIRE,AMQP;sslEnabled=true;needClientAuth=true;keyStorePath=localhost.jks;keyStorePassword=********;trustStorePath=CA.jks;trustStorePassword=*******;needClientAuth=true;forceSSLParameters=true;enabledCipherSuites=TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384;enabledProtocols=${tls.protocols}</acceptor>
>               </acceptors>
> {code}
> produces
> {noformat}
> 15:59:44.953 ERROR ArtemisTest - Artemis failed to start
> java.lang.RuntimeException: Illegal character in query at index 1067: 
> tcp://localhost:6161?protocols=CORE,OPENWIRE,AMQP&sslEnabled=true&needClientAuth=true&keyStorePath=localhost.jks&keyStorePassword=********&trustStorePath=CA.jks&trustStorePassword=********&needClientAuth=true&forceSSLParameters=true&enabledCipherSuites=TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384&enabledProtocols=${tls.protocols}
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to