The URL Scheme the HTTP Message is incorrect when using proxy

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

Activity

Show:

CB robot June 2, 2023 at 10:30 PM

Build couchbase-lite-net-3.0.12-2 contains couchbase-lite-core commit 8b994b1 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-4388#icft=CBL-4388 : Fix URL scheme in HTTP message when using proxy (#1748)

CB robot June 2, 2023 at 8:25 AM

Build couchbase-lite-ios-3.0.7-20 contains couchbase-lite-core commit 8b994b1 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-4388#icft=CBL-4388 : Fix URL scheme in HTTP message when using proxy (#1748)

CB robot June 1, 2023 at 8:56 PM

Build couchbase-lite-c-3.0.12-2 contains couchbase-lite-core commit 8b994b1 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-4388#icft=CBL-4388 : Fix URL scheme in HTTP message when using proxy (#1748)

CB robot April 19, 2023 at 12:38 AM

Build couchbase-lite-core-3.0.12-3 contains couchbase-lite-core commit 8b994b1 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-4388#icft=CBL-4388 : Fix URL scheme in HTTP message when using proxy (#1748)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created April 6, 2023 at 11:52 PM
Updated August 31, 2024 at 10:55 AM
Resolved April 19, 2023 at 12:29 AM
Instabug