Error appears in DevTools Console ("doesn't contain the link profiles") when Researcher Profiles disabled #3759
Labels
affects: main
Issue impacts "main" (latest release).
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
component: user profile
error handling
How errors are handled from REST API
help wanted
Needs a volunteer to claim to move forward
high priority
Describe the bug
This error appears to have started after the 8.0 release. But, it's reproducible on both our
main
anddspace-8_x
branches. If you open your browser's DevTools and login, you'll see an error like this in the Console:Even though this error states that a
profiles
"link" is missing from a REST API response, it seems like a possibledspace-angular
bug with attempting to access the Researcher Profiles when that feature is disabled. (Theprofiles
link relates to Researcher Profiles: https://github.com/DSpace/RestContract/blob/main/profiles.md)To Reproduce
Steps to reproduce the behavior:
researcher-profile.entity-type = Person
main
, usenpm run build:prod; npm run serve:ssr
. Fordspace-8_x
, useyarn run build:prod; yarn run serve:ssr
Expected behavior
No error should appear in Dev Tools.
The text was updated successfully, but these errors were encountered: