urlencode collection_name on calling partial snapshot create API (#7782)

This commit is contained in:
Kumar Shivendu
2025-12-16 04:46:30 +05:30
committed by timvisee
parent f834a11aad
commit cdcea135a1
3 changed files with 4 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -5241,6 +5241,7 @@ dependencies = [
"tracing-log",
"tracing-subscriber",
"tracing-tracy",
"urlencoding",
"uuid",
"validator",
"wal",

View File

@@ -74,6 +74,7 @@ sys-info = "0.9.1"
wal = { workspace = true }
ordered-float = { workspace = true }
ahash = { workspace = true }
urlencoding = { workspace = true }
config = { version = "0.15.13", default-features = false, features = ["yaml"] }

View File

@@ -734,8 +734,9 @@ async fn recover_partial_snapshot_from(
let http_client = http_client.client(api_key.as_deref())?;
let encoded_collection_name = urlencoding::encode(&collection_name);
let create_snapshot_url = format!(
"{peer_url}/collections/{collection_name}/shards/{shard_id}/snapshot/partial/create"
"{peer_url}/collections/{encoded_collection_name}/shards/{shard_id}/snapshot/partial/create"
);
let snapshot_manifest = collection.get_partial_snapshot_manifest(shard_id).await?;