Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14707

[GSS](7.1.z) Unable to pass any attribute to jboss-cli.ps1 script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.3.CR1, 7.1.3.GA
    • None
    • CLI, Scripts
    • None
    • EAP 7.1.3

      Unable to pass any attribute to jboss-cli.ps1 script

      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 --help
      '--help-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name.
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 --version
      '--version-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name
      .
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 -c
      '-c-Dcom.ibm.jsse2.overrideDefaultTLS=true' is not a valid operation name.
      
      C:\wildfly\wildfly-12.0.0.Final\bin> PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1
      You are disconnected at the moment. Type 'connect' to connect to the server or '
      help' for the list of supported commands.
      [disconnected /]
      

      I am using PowerShell 4.0

      PS C:\> $PSVersionTable.PSVersion
      
      Major  Minor  Build  Revision
      -----  -----  -----  --------
      4      0      -1     -1
      
      
      PS C:\>
      

      This behaviour is caused by this change:

      https://github.com/wildfly/wildfly-core/blame/master/core-feature-pack/src/main/resources/content/bin/jboss-cli.ps1#L13

            rhn-engineering-lgao Lin Gao
            rhn-engineering-lgao Lin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified