Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

401 Unauthorized response error message notification #2030

@gpehh

Description

@gpehh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions