Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3004

properties are not resolved for arguments of commands handled on the client-side

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.CR1, 8.1.0.Final
    • 8.0.0.Final
    • CLI
    • None

      When using cli for batch files using --file and --properties arguments, any property is resolved but for those defined in the connect command line.

      The properties file contains (among the others):
      server.bind.addr = xxxxx
      server.management.port = 9990

      Having:
      connect ${server.bind.addr}
      in the batch file gets
      ERROR [org.jboss.as.cli.CommandContext] Failed to resolve host '${server.bind.addr}': Failed to create URI: Illegal character in authority at index 16: http-remoting://${server.bind.addr}:9990

      Having:
      connect ${server.bind.addr}:${server.management.port}
      gets:
      ERROR [org.jboss.as.cli.CommandContext] The port must be a valid non-negative integer: '${server.bind.addr}:${server.management.

      If i use literal values for the connect command, any other property in the batch is correctly resolved (but that's exactly what i was trying to avoid)

              olubyans@redhat.com Alexey Loubyansky
              garu_jira Gabriele Garuglieri (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: