Can't get namespace of a subgroup by its path

Summary

I have some groups tree - group with subgroups Screenshot_2019-02-05_15_15_32

I want to get namespaces via API https://gitlab.com/help/api/namespaces.md

When I get list of namespaces, I receive all namespaces (including subgroups) - that's good Screenshot_2019-02-05_15_20_40

When I want to get one namespace by ID or path, then:

  1. group "z" by ID - OK

Screenshot_2019-02-05_15_25_46

  1. group "z" by path - OK

Screenshot_2019-02-05_15_26_58

  1. group "b" (subgroup of "z") by ID - OK

Screenshot_2019-02-05_15_29_13

  1. group "b" (subgroup of "z") by path - ERROR

Screenshot_2019-02-05_15_34_20

  1. group "w" (subgroup of "b") by ID - OK

Screenshot_2019-02-05_15_36_03

  1. group "w" (subgroup of "b") by path - ERROR

Screenshot_2019-02-05_15_37_27

So getting namespace of a group which is a subgroup doesn't work. But search by path is working Screenshot_2019-02-05_15_42_02 Screenshot_2019-02-05_15_42_33

I need exactly get namespace of a group (no matter - it is a parent or subgroup) by its path.

UPD: The same thing happens when getting a group by path:

https://example.com/api/v4/groups/z - OK

https://example.com/api/v4/groups/b - ERROR

https://example.com/api/v4/groups/w - ERROR

Edited by Oleksandr Trelin