Skip to content

Commit 85631bb

Browse files
committed
Fixed addGroup() param validation.
1 parent f4c0750 commit 85631bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/gitlab4j/api/GroupApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ public Group addGroup(String name, String path) throws GitLabApiException {
480480

481481
public Group addGroup(Group group) throws GitLabApiException {
482482
Form formData = new GitLabApiForm()
483-
.withParam("name", group.getName())
484-
.withParam("path", group.getPath())
483+
.withParam("name", group.getName(), true)
484+
.withParam("path", group.getPath(), true)
485485
.withParam("description", group.getDescription())
486486
.withParam("visibility", group.getVisibility())
487487
.withParam("lfs_enabled", group.getLfsEnabled())
@@ -510,8 +510,8 @@ public Group addGroup(String name, String path, String description, Visibility v
510510
Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {
511511

512512
Form formData = new GitLabApiForm()
513-
.withParam("name", name)
514-
.withParam("path", path)
513+
.withParam("name", name, true)
514+
.withParam("path", path, true)
515515
.withParam("description", description)
516516
.withParam("visibility", visibility)
517517
.withParam("lfs_enabled", lfsEnabled)

0 commit comments

Comments
 (0)