java-gitlab-api icon indicating copy to clipboard operation
java-gitlab-api copied to clipboard

fixes getProjects(namespace, name) with a search

Open ctabin opened this issue 8 years ago • 4 comments

Hello,

Here is a little contribution to fix the getProject(String namespace, String projectName) method, because in the Gitlab API, you can only access a project by its ID. Hence you need to do a search and compare it with retrieved projects.

Any feedback is welcomed :-)

Best regards, Cédric

ctabin avatar May 18 '17 15:05 ctabin

Hi,

I changed slightly the implementation to check the Namespace name. It's safer now :-)

Best, Cédric

ctabin avatar May 31 '17 20:05 ctabin

I am able to access a project by namespace and name against Gitlab EE 9.4. It's important to escape the namespace (see #254).

novalis avatar Sep 19 '17 23:09 novalis

@novalis I checked with the latest version (4.1.0) against our GitLab CE 11.8.1 and I still have the same problem... Maybe there is a difference on this between CE and EE ?

ctabin avatar Mar 17 '19 20:03 ctabin

I won't be able to check this out until early June. Please pester me then. If it's more urgent, maybe @jhedwardyang can take a look. The space seems extremely unlikely, but what do I know?

novalis avatar Mar 17 '19 20:03 novalis