From 85631bbb1751f176eb4d988245d41a09f1322e7d Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Sat, 15 Jun 2019 21:39:59 -0700 Subject: [PATCH] Fixed addGroup() param validation. --- src/main/java/org/gitlab4j/api/GroupApi.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gitlab4j/api/GroupApi.java b/src/main/java/org/gitlab4j/api/GroupApi.java index 1d11cc87..b50feae9 100644 --- a/src/main/java/org/gitlab4j/api/GroupApi.java +++ b/src/main/java/org/gitlab4j/api/GroupApi.java @@ -480,8 +480,8 @@ public class GroupApi extends AbstractApi { public Group addGroup(Group group) throws GitLabApiException { Form formData = new GitLabApiForm() - .withParam("name", group.getName()) - .withParam("path", group.getPath()) + .withParam("name", group.getName(), true) + .withParam("path", group.getPath(), true) .withParam("description", group.getDescription()) .withParam("visibility", group.getVisibility()) .withParam("lfs_enabled", group.getLfsEnabled()) @@ -510,8 +510,8 @@ public class GroupApi extends AbstractApi { Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException { Form formData = new GitLabApiForm() - .withParam("name", name) - .withParam("path", path) + .withParam("name", name, true) + .withParam("path", path, true) .withParam("description", description) .withParam("visibility", visibility) .withParam("lfs_enabled", lfsEnabled) -- GitLab