Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The node reports the information, and there is a problem with the applicationName format. #1046

Open
wrathkuiye opened this issue Sep 17, 2019 · 2 comments
Labels
area/dashboard Issues or PRs about Sentinel Dashboard kind/question Category issues related to questions or problems

Comments

@wrathkuiye
Copy link

wrathkuiye commented Sep 17, 2019

启动控制台,如果SpringBoot项目中的名称为 xxxx/xxxx ,带有斜杠,
会导致控制台根据appName获取节点状态信息失败,
控制台的接口定义
@GetMapping(value = "/{app}/machines.json")
@RequestMapping(value = "/{app}/machine/remove.json")
使用@PathParam会出现404, 路径会被解析成 xxx/xxx/machine/remove.json

@sentinel-bot
Copy link
Collaborator

Hi @wrathkuiye, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.

The node reports the information, and there is a problem with the applicationName format.

Start the console, if the name in the SpringBoot project is xxxx/xxxx with a slash, it will cause the console to fail to get information.
Console interface definition
@GetMapping(value = "/{app}/machines.json")
@RequestMapping(value = "/{app}/machine/remove.json")
Using @PathParam will appear 404, the path will be parsed into xxx/xxx/machine/remove.json

@sentinel-bot sentinel-bot changed the title 节点上报信息,applicationName格式出现问题 The node reports the information, and there is a problem with the applicationName format. Sep 17, 2019
@sentinel-bot sentinel-bot added the kind/question Category issues related to questions or problems label Sep 17, 2019
@sczyh30 sczyh30 added the area/dashboard Issues or PRs about Sentinel Dashboard label Sep 18, 2019
@sczyh30
Copy link
Member

sczyh30 commented Nov 28, 2019

The appName should be URL-encoded when passed to the API.

@wrathkuiye wrathkuiye reopened this Dec 26, 2019
CST11021 pushed a commit to CST11021/Sentinel that referenced this issue Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Issues or PRs about Sentinel Dashboard kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

3 participants