]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notification: According to RFC 3986, IPv6 addresses in URIs must be enclosed...
authorKrunal Chheda <kchheda3@bloomberg.net>
Wed, 19 Nov 2025 16:26:25 +0000 (11:26 -0500)
committerKrunal Chheda <kchheda3@bloomberg.net>
Thu, 20 Nov 2025 17:19:15 +0000 (12:19 -0500)
Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
src/test/rgw/test_rgw_url.cc

index 358217bfe7756d881bbe20e738a6da62ac0a1e09..2b036c3444ea0fe3ff48a19e98f73ec6e8522a79 100644 (file)
@@ -48,11 +48,11 @@ TEST(TestURL, IPv6Authority)
     std::string host;
     std::string user;
     std::string password;
-    const std::string url = "http://FE80:CD00:0000:0CDE:1257:0000:211E:729C";
+    const std::string url = "http://[FE80:CD00:0000:0CDE:1257:0000:211E:729C]";
     ASSERT_TRUE(parse_url_authority(url, host, user, password));
     ASSERT_TRUE(user.empty());
     ASSERT_TRUE(password.empty());
-    EXPECT_STREQ(host.c_str(), "FE80:CD00:0000:0CDE:1257:0000:211E:729C"); 
+    EXPECT_STREQ(host.c_str(), "[FE80:CD00:0000:0CDE:1257:0000:211E:729C]");
 }
 
 TEST(TestURL, AuthorityWithUserinfo)