From 3182d76e24fc2bbc011f2894548c6cfc89cfe292 Mon Sep 17 00:00:00 2001 From: rustagir Date: Tue, 13 Aug 2024 15:47:40 -0400 Subject: [PATCH 1/2] DOCSP-42514: kotlin user/pass placeholders --- source/connect.txt | 4 ++-- source/get-started/create-a-connection-string.txt | 2 +- source/includes/connect/compression-tabs.rst | 2 +- source/includes/connect/disable-host-verification-tabs.rst | 2 +- source/includes/connect/tls-tabs.rst | 2 +- source/includes/connect/zlib-level-tabs.rst | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/connect.txt b/source/connect.txt index 946eac4e..098d3e87 100644 --- a/source/connect.txt +++ b/source/connect.txt @@ -84,7 +84,7 @@ deployment hosted on Atlas: .. code-block:: kotlin - val uri = "mongodb+srv://:@/?" + val uri = "mongodb+srv://:@/?" val mongoClient = MongoClient.create(uri) Replica Set @@ -161,7 +161,7 @@ selection function: .. code-block:: kotlin - val client = MongoClient.create("mongodb://:@:", + val client = MongoClient.create("mongodb://:@:", server_selector=) .. To learn more about customizing server selection, see diff --git a/source/get-started/create-a-connection-string.txt b/source/get-started/create-a-connection-string.txt index be132969..e71d3e22 100644 --- a/source/get-started/create-a-connection-string.txt +++ b/source/get-started/create-a-connection-string.txt @@ -49,7 +49,7 @@ when applicable, and connection options. .. step:: Update the Placeholders Paste this connection string into a file in your preferred text editor - and replace the ```` and ```` placeholders with + and replace the ```` and ```` placeholders with your database user's username and password. Save this file to a safe location to use in the next step. diff --git a/source/includes/connect/compression-tabs.rst b/source/includes/connect/compression-tabs.rst index d0395038..e8b9cdbc 100644 --- a/source/includes/connect/compression-tabs.rst +++ b/source/includes/connect/compression-tabs.rst @@ -22,6 +22,6 @@ .. code-block:: kotlin - val uri = ConnectionString("mongodb+srv://:@/?compressors=snappy,zlib,zstd") + val uri = ConnectionString("mongodb+srv://:@/?compressors=snappy,zlib,zstd") val mongoClient = MongoClient.create(uri) diff --git a/source/includes/connect/disable-host-verification-tabs.rst b/source/includes/connect/disable-host-verification-tabs.rst index 8acb68c9..f099f99b 100644 --- a/source/includes/connect/disable-host-verification-tabs.rst +++ b/source/includes/connect/disable-host-verification-tabs.rst @@ -20,5 +20,5 @@ .. code-block:: kotlin - val uri = "mongodb://:@:/?"tls=true&tlsAllowInvalidHostnames=true" + val uri = "mongodb://:@:/?"tls=true&tlsAllowInvalidHostnames=true" val mongoClient = MongoClient.create(uri) \ No newline at end of file diff --git a/source/includes/connect/tls-tabs.rst b/source/includes/connect/tls-tabs.rst index 40c0c2a7..853c3730 100644 --- a/source/includes/connect/tls-tabs.rst +++ b/source/includes/connect/tls-tabs.rst @@ -20,5 +20,5 @@ .. code-block:: kotlin - val uri = "mongodb+srv://:@?tls=true" + val uri = "mongodb+srv://:@?tls=true" val mongoClient = MongoClient.create(uri) \ No newline at end of file diff --git a/source/includes/connect/zlib-level-tabs.rst b/source/includes/connect/zlib-level-tabs.rst index 0d854483..e96c4546 100644 --- a/source/includes/connect/zlib-level-tabs.rst +++ b/source/includes/connect/zlib-level-tabs.rst @@ -19,7 +19,7 @@ .. code-block:: kotlin - val uri = "mongodb://:@:/?" + + val uri = "mongodb://:@:/?" + "compressors=zlib" + "zlibCompressionLevel=" From 7edd29cc6e9a311762e72d5a61cde3c4ac9d8553 Mon Sep 17 00:00:00 2001 From: Rea Rustagi <85902999+rustagir@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:54:44 -0400 Subject: [PATCH 2/2] atlas modal not updated to use these placeholders --- source/get-started/create-a-connection-string.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/get-started/create-a-connection-string.txt b/source/get-started/create-a-connection-string.txt index e71d3e22..be132969 100644 --- a/source/get-started/create-a-connection-string.txt +++ b/source/get-started/create-a-connection-string.txt @@ -49,7 +49,7 @@ when applicable, and connection options. .. step:: Update the Placeholders Paste this connection string into a file in your preferred text editor - and replace the ```` and ```` placeholders with + and replace the ```` and ```` placeholders with your database user's username and password. Save this file to a safe location to use in the next step.