Skip to content

[Bug] Naming module subscriber can't get right appName #13400

@KomachiSion

Description

@KomachiSion

Describe the bug
In SubscribeServiceRequestHandler, handler will get appName from requestContext.

And requestContext will try get app from connection, if not get, will get from request, see GrpcRequestAcceptor.prepareRequestContext.

But the connectionMeta has default value - for appName when build new connection, which will cause GrpcRequestAcceptor never to get appName from request.

Expected behavior
Naming module subscriber can get appName correct if set

Actually behavior
always - for Naming module subscriber

How to Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See errors

Desktop (please complete the following information):

  • Version nacos-server 2.3.2, nacos-client 2.1.0
  • Module naming

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/Namingkind/bugCategory issues or prs related to bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions