Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2673

HTTP redirect if both http and https socket-binding is configured for http-interface

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Management
    • None

    Description

      In case when both http and https socket-binding is configured for management http-interface and http port is accessed then server tries to redirect automatically to https port. Access http is not possible.

      It causes that it is impossible to connect to http-interface with clients which do not supports https (even if http port is provided by application server), i.e. following ModelControllerClient is not able to connect to http-interface when both http and https socket-binding is configured:

      ModelControllerClient client = ModelControllerClient.Factory
              .create(new ModelControllerClientConfiguration.Builder()
                      .setProtocol("remote+http")
                      .setPort(9990)
                      .setHostName("localhost")
                      .setConnectionTimeout(10000).build())
      

      See:

      curl -v -H 'Upgrade: jboss-remoting' http://localhost:9990
      * Rebuilt URL to: http://localhost:9990/
      * Hostname was NOT found in DNS cache
      *   Trying 127.0.0.1...
      * Connected to localhost (127.0.0.1) port 9990 (#0)
      > GET / HTTP/1.1
      > User-Agent: curl/7.38.0
      > Host: localhost:9990
      > Accept: */*
      > Upgrade: jboss-remoting
      > 
      < HTTP/1.1 302 Found
      < Connection: keep-alive
      < Location: https://localhost:9993/
      < Content-Length: 0
      < Date: Thu, 13 Apr 2017 11:59:56 GMT
      < 
      * Connection #0 to host localhost left intact
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              olukas Ondrej Lukas (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: