FUSE ESB
  1. FUSE ESB
  2. ESB-1503

variable substitution doesn't work for system.properties

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-fuse-xx-00
    • Component/s: None
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      for example in system.properties we have
      karaf.name=root
      and
      jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-$

      {karaf.name}

      if jmx.url was loaded before karaf.name then the variable substitution doesn't work
      we get the
      jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-
      after variable substitution.

      The error comes from that in
      Main.loadSystemProperties() method we have
      System.setProperty(name, substVars(value, name, null, null));
      which is incorrect, we should use
      System.setProperty(name, substVars(value, name, null, props));
      instead

        Activity

        Hide
        Freeman(Yue) Fang
        added a comment -

        cherry-pick fix

        commit 66247b1a2ee3ec6fe8d7edde3c6514b72ff69fdb
        Author: Freeman Yue Fang <ffang@apache.org>
        Date:   Mon Jul 4 09:23:28 2011 +0000
        
            [KARAF-706]variable substitution doesn't work for system.properties
            
            git-svn-id: https://svn.apache.org/repos/asf/karaf/trunk@1142594 13f79535-47bb-0310-9956-ffa450edef68
            (cherry picked from commit ff2de0b2f5bf69f19e412e29a684f9a0fc2e28e3)
        
        
        Show
        Freeman(Yue) Fang
        added a comment - cherry-pick fix commit 66247b1a2ee3ec6fe8d7edde3c6514b72ff69fdb Author: Freeman Yue Fang <ffang@apache.org> Date: Mon Jul 4 09:23:28 2011 +0000 [KARAF-706]variable substitution doesn't work for system.properties git-svn-id: https: //svn.apache.org/repos/asf/karaf/trunk@1142594 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit ff2de0b2f5bf69f19e412e29a684f9a0fc2e28e3)

          People

          • Assignee:
            Freeman(Yue) Fang
            Reporter:
            Freeman(Yue) Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: