Skip to content

Commit 75a8f0e

Browse files
authored
[#7686] improvement(client-java): Correct URL encode path in alterModelVersion in GenericModelCatalog.java (#7694)
### What changes were proposed in this pull request? The cherry-pick conflicts were successfully resolved by manually ### Why are the changes needed? Close: #7686 ### Does this PR introduce _any_ user-facing change? None ### How was this patch tested? using the client-java module's tests.
1 parent 1c03908 commit 75a8f0e

File tree

2 files changed

+137
-74
lines changed

2 files changed

+137
-74
lines changed

clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelCatalog.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ public ModelVersion alterModelVersion(
329329
NameIdentifier modelFullIdent = modelFullNameIdentifier(ident);
330330
ModelVersionResponse resp =
331331
restClient.put(
332-
formatModelVersionRequestPath(modelFullIdent) + "/aliases/" + alias,
332+
formatModelVersionRequestPath(modelFullIdent)
333+
+ "/aliases/"
334+
+ RESTUtils.encodeString(alias),
333335
req,
334336
ModelVersionResponse.class,
335337
Collections.emptyMap(),

0 commit comments

Comments
 (0)