Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-1407

Java RCS: Incorrect url in Debug message of HttpRequestPacket header for non-SSL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.19.0
    • 1.5.19.0
    • OpenIDM: 7.1.0-SNAPSHOT 455b704
      Java-Connector-Server: 1.5.19.0-SNAPSHOT
    • 2
    • 2020.13 - IDM

    Description

      Found a wrong url in the HttpRequestPacket header when using non-SSL connection between IDM and RCS in client mode, it is visible as a Debug log message in the RCS log:

      Sep 22, 2020 12:53:39 PM INFO  o.i.f.i.a.l.LocalConnectorInfoManagerImpl: Add ConnectorInfo ConnectorKey( bundleName=org.forgerock.openicf.connectors.csvfile-connector bundleVersion=1.5.19.0-SNAPSHOT connectorName=org.forgerock.openicf.csvfile.CSVFileConnector ) to Local Connector Info Manager from file:/home/stankar/Downloads/git/pyforge/results/20200922-125302/without_ssl/JCS1/openicf/connectors.new/csvfile-connector-1.5.19.0-SNAPSHOT.jar 
      Sep 22, 2020 12:53:39 PM DEBUG o.f.o.f.r.ManagedAsyncConnectorInfoManager: Add new ConnectorInfo: ConnectorKey( bundleName=org.forgerock.openicf.connectors.csvfile-connector bundleVersion=1.5.19.0-SNAPSHOT connectorName=org.forgerock.openicf.csvfile.CSVFileConnector )	Method: addConnectorInfo 
      Sep 22, 2020 12:53:39 PM DEBUG o.f.o.f.DelegatingAsyncConnectorInfoManager: Add AsyncConnectorInfoManager to delegates	Method: addAsyncConnectorInfoManager 
      Sep 22, 2020 12:53:39 PM INFO  o.f.openicf.framework.server.Main: ConnectorAgent connecting to : ws://localhost:8080/openicf#	Method: loadProperties 
      Sep 22, 2020 12:53:39 PM INFO  o.f.o.f.c.ClientRemoteConnectorInfoManager: 2 WebSocket(s) created, 0 remaining permits.	Method: lambda$new$1 
      Sep 22, 2020 12:53:39 PM DEBUG o.f.o.f.client.ConnectionManager: handleConnect: HttpRequestPacket (
         method=GET
         url=/openicf
         query=null
         protocol=HTTP/1.1
         content-length=-1
         headers=[
            Connection=Upgrade
            Host=localhost:8080
            Sec-WebSocket-Protocol=v1.openicf.forgerock.org
            Sec-WebSocket-Protocol=v1.openicf.forgerock.org
            Sec-WebSocket-Key=MMMLQrVrFiDjJKeOzRRS+A==
            Sec-WebSocket-Version=13
            Origin=wss://localhost:8080
            Accept=*/*
            User-Agent=OpenICF-Client-Version[1.5]
            Authorization=Basic b3BlbmlkbS1hZG1pbjpvcGVuaWRtLWFkbWlu
            OpenICF-Connector-Server-Name=onprem1]
      )	Method: handleConnect  
      

      ^^ notice the Origin having the url: `wss://localhost:8080` instead of `url: ws://localhost:8080` for non-SSL

      Attachments

        Issue Links

          Activity

            People

              emanuel.brici Emanuel Brici [X] (Inactive)
              son.nguyen Son Nguyen
              Son Nguyen Son Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: