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

401 Unauthorized response error message notification #2030

Open
gpehh opened this issue Jan 10, 2025 · 0 comments
Open

401 Unauthorized response error message notification #2030

gpehh opened this issue Jan 10, 2025 · 0 comments
Labels
type/feature Is a feature request
Milestone

Comments

@gpehh
Copy link

gpehh commented Jan 10, 2025

I defined role-based users in the spring cloud dataflow application with spring security and control page access with hasRole.
.antMatchers(HttpMethod.GET, "/audit-records").hasRole("MANAGE")
.antMatchers(HttpMethod.GET, "/audit-records/**").hasRole("MANAGE")

For unauthorized users, a response is returned with the status code 401 Unauthorized.
image
The page notification message comes like this. Can I change it to a more user-friendly message?

An error occurred
TypeError: d is not iterable

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jan 10, 2025
@cppwfs cppwfs transferred this issue from spring-cloud/spring-cloud-dataflow Jan 10, 2025
@cppwfs cppwfs added type/feature Is a feature request and removed status/need-triage Team needs to triage and take a first look labels Jan 10, 2025
@cppwfs cppwfs added this to the 3.4.x milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants