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 error message is not user-friendly when adding duplicate permissions. #12773

Open
zhouchunhai opened this issue Oct 22, 2024 · 2 comments
Open
Labels

Comments

@zhouchunhai
Copy link
Contributor

Describe the bug
The error message is not user-friendly when adding duplicate permissions.

Expected behavior
I expect a friendly error message, such as 'This permission already exists, please do not add it again.'

Actually behavior
The prompt is not friendly enough, as it prints out backend stack trace information.

How to Reproduce
Steps to reproduce the behavior:

  1. Enter the permission management page.
  2. Add a permission.
  3. Add the same permission again.
  4. See errors

Desktop (please complete the following information):

  • OS: [Windows]
  • Version [nacos-server 2.4.1]
  • Module [config]
  • SDK [spring-cloud-alibaba-nacos]

Additional context
image

@KomachiSion
Copy link
Collaborator

Can you upgrade to new version and retry?

@zhouchunhai
Copy link
Contributor Author

version 2.4.3 still has this problem.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants