Nacos: 1.4.0 Service list Cannot query by group name

Created on 20 Nov 2020  ·  2Comments  ·  Source: alibaba/nacos

Describe the bug
image
image

areNacos console kinbug

Most helpful comment

@I will fix it.

All 2 comments

@I will fix it.

The interface return 'Param 'serviceName' is illegal, serviceName is blank', it should be optional in this one.

issue #3687 add a strong verification when NamingUtils.getGroupedName().

So, I think add a function without verification would be better.

    public static String getGroupedName(final String serviceName, final String groupName) {
        if (StringUtils.isBlank(serviceName)) {
            throw new IllegalArgumentException("Param 'serviceName' is illegal, serviceName is blank");
        }
        final String resultGroupedName = groupName + Constants.SERVICE_INFO_SPLITER + serviceName;
        return resultGroupedName.intern();
    }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

error0702 picture error0702  ·  3Comments

Yogurt-lei picture Yogurt-lei  ·  4Comments

lixinglin213 picture lixinglin213  ·  3Comments

yanlinly picture yanlinly  ·  6Comments

NalHoug picture NalHoug  ·  5Comments