Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-4390

The URL Scheme the HTTP Message is incorrect when using proxy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Beryllium
    • 3.0.2
    • LiteCore
    • Security Level: Public
    • None
    • LiteCore 109
    • 1

    Description

      This only impacts CBL-C which is using LiteCore's BuiltInWebSocket. Currently when using proxy, the scheme or the target URL in the start line of the HTTP message is is ws or wss, which is not correct (See the example below). The scheme should be http or https.

      Note: I have tested the issue with the mitmproxy.

      Example 

      Incorrect (Current)

      GET ws://192.168.86.203:4984/db/_blipsync HTTP/1.1 

      Correct

      GET http://192.168.86.203:4984/db/_blipsync HTTP/1.1 

      Attachments

        Issue Links

          Activity

            People

              callum.birks Callum Birks
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty