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

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

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

littlesparklet added a commit to littlesparklet/nacos that referenced this issue Oct 31, 2024
littlesparklet added a commit to littlesparklet/nacos that referenced this issue Nov 29, 2024
zhouchunhai added a commit to zhouchunhai/nacos that referenced this issue Nov 29, 2024
KomachiSion pushed a commit that referenced this issue Dec 5, 2024
#12805)

* The error message is not user-friendly when adding duplicate permissions. (#12273)

* The error message is not user-friendly when adding duplicate permissions. (#12773)

* add some unit test.

* fix ci fail.
KomachiSion pushed a commit that referenced this issue Dec 5, 2024
#12803)

* The error message is not user-friendly when adding duplicate permissions. (#12773)

* The error message is not user-friendly when adding duplicate permissions.(#12773)
@KomachiSion KomachiSion added this to the 2.5.0 milestone Dec 5, 2024
KomachiSion pushed a commit that referenced this issue Dec 6, 2024
…ns or binding relationship. (#12926)

* Fix unfriendly message when adding duplicate roles.

* unit test.

* correct code style.

* correct code style.

* correct code style.
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