Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2815

Special character in system or env variable causes var substitution to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.4, 5.3.10
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Example:

        <JDBC_PING2
                  connection_password="${KC_DB_PASSWORD:secret}"
          ... />
       

      When system (or env-) variable KC_BD_PASSWORD is set to uUGANEs7!!MX{cjJ_NNENP%${CMj (note the opening curly bracket), then startup fails:

      Exception in thread "main" java.lang.IllegalArgumentException: missing "}" in uUGANEs7!!MX{cjJ_NNENP%${CMj
      	at org.jgroups.util.Util._substituteVar(Util.java:4958)
      	at org.jgroups.util.Util.substituteVariable(Util.java:4944)
      	at org.jgroups.util.Util.substituteVariable(Util.java:4926)
      	at org.jgroups.conf.ProtocolConfiguration.substituteVariables(ProtocolConfiguration.java:114)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      	at org.jgroups.JChannel.init(JChannel.java:914)
      	at org.jgroups.JChannel.<init>(JChannel.java:128)
      	at org.jgroups.JChannel.<init>(JChannel.java:109)
      	at org.jgroups.demos.Chat.start(Chat.java:34)
      	at org.jgroups.demos.Chat.main(Chat.java:97)
      
      

      Link: https://github.com/keycloak/keycloak/issues/31589

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: