Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0 M1
    • Fix Version/s: 4.1.0 RC3
    • Component/s: CLI
    • Labels:
      None

      Description

      Seems like in CLI even when the user is not authenticated it says "Successfully Authenticated", see the below trace:

      Username: admin
      Password: *****
      java.net.UnknownHostException: s4: nodename nor servname provided, or not known
      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
      at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
      at java.net.InetAddress.getAllByName(InetAddress.java:1162)
      at java.net.InetAddress.getAllByName(InetAddress.java:1098)
      at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:259)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:159)
      at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
      at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
      at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
      at org.apache.stratos.cli.RestClient.doGet(RestClient.java:126)
      at org.apache.stratos.cli.RestCommandLineService.login(RestCommandLineService.java:169)
      at org.apache.stratos.cli.StratosApplication.login(StratosApplication.java:399)
      at org.apache.stratos.cli.StratosApplication.run(StratosApplication.java:347)
      at org.apache.stratos.cli.CommandLineApplication.start(CommandLineApplication.java:100)
      at org.apache.stratos.cli.CliTool.handleConsoleInputs(CliTool.java:56)
      at org.apache.stratos.cli.CliTool.main(CliTool.java:42)
      Successfully Authenticated.

        Activity

        Hide
        imesh Imesh Gunaratne added a comment -

        Fixed with commit revision: 8550d58de4545e1ca79bb5bd49af84f5ac6002f2

        Show
        imesh Imesh Gunaratne added a comment - Fixed with commit revision: 8550d58de4545e1ca79bb5bd49af84f5ac6002f2

          People

          • Assignee:
            imesh Imesh Gunaratne
            Reporter:
            imesh Imesh Gunaratne
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development