Inconsistency in "self link" Returned by DSpace 8.0 REST API

111 views
Skip to first unread message

Lucas Silveira

unread,
Jan 3, 2025, 12:37:28 PM1/3/25
to DSpace Technical Support

Dear DSpace Community,

While using the DSpace 8.0 REST API, we have encountered an issue related to the "self link" in responses. Specifically, when making requests to the discover/search endpoint with query parameters (e.g., scope and configuration), the self link in the response does not reflect the full URL with the query parameters. Instead, it only points to the generic endpoint URL.

Example Request:

GET /server/api/discover/search?scope=<scope-id>&configuration=<configuration-id>

Example Response:

"_links": {
  "self": {
    "href": "https://<domain>/server/api/discover/search"
  }
}

This inconsistency generates the following warning in the frontend logs:

The response for '<full-URL>' has the self link '<generic-URL>'. These don't match. This could mean there's an issue with the REST endpoint.

Observed Impact

This discrepancy may lead to warnings in the frontend logs and could potentially affect functionality such as pagination and filtering.

If anyone in the community has insights into this behavior or has addressed similar issues, sharing solutions or workarounds would be greatly appreciated.

Best regards, Lucas.

DSpace Technical Support

unread,
Jan 6, 2025, 3:30:33 PM1/6/25
to DSpace Technical Support
Hi Lucas,

These warnings can be ignored as they are harmless & should not impact overall performance or site behavior.  The warnings are there as a reminder to the development team that these "link" paths need further work. To that point, the developers have several open tickets regarding cleaning up these warnings, as all sites will see them occur on a few key User Interface pages:


That said, if you are *noticing* these warnings on every page, that is sign of something else going on.  I doubt that is what you are seeing though, as it sounds like you are mostly seeing the bug described in ticket 8576...where search pages sometimes log this warning.

Tim

Lucas Silveira

unread,
Jan 6, 2025, 3:50:58 PM1/6/25
to DSpace Technical Support

Hi Tim,

Thank you for your earlier response and for the clarification regarding the warnings. It was very helpful.

I’d like to report an issue I’m experiencing when trying to view all metadata of an item or edit its permissions in the administrative interface. On several occasions, these pages keep loading indefinitely, and the data only appears after I refresh the page. Sometimes, I have to refresh more than once for the information to display correctly.

This behavior is inconsistent and happens intermittently, making it difficult to diagnose. It seems to be related to the loading of specific information or communication with the REST API.

Have you seen similar cases elsewhere? Or do you know if there’s any configuration or fix that might mitigate this issue?

I appreciate your attention and any guidance you can provide.

Best regards, Lucas.

Lucas Silveira

unread,
Jan 6, 2025, 3:51:24 PM1/6/25
to DSpace Technical Support, Tim Donohue

Hi Tim,

Thank you for your earlier response and for the clarification regarding the warnings. It was very helpful.

I’d like to report an issue I’m experiencing when trying to view all metadata of an item or edit its permissions in the administrative interface. On several occasions, these pages keep loading indefinitely, and the data only appears after I refresh the page. Sometimes, I have to refresh more than once for the information to display correctly.

This behavior is inconsistent and happens intermittently, making it difficult to diagnose. It seems to be related to the loading of specific information or communication with the REST API.

Have you seen similar cases elsewhere? Or do you know if there’s any configuration or fix that might mitigate this issue?

I appreciate your attention and any guidance you can provide.

Best regards, Lucas.


--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/e3e1c1ef-966a-4b40-9625-2f3060b6175en%40googlegroups.com.

DSpace Technical Support

unread,
Jan 6, 2025, 4:37:34 PM1/6/25
to DSpace Technical Support
Hi Lucas,

There have been some similar reports to that which we've been fixing for 9.0 / 8.1 / 7.6.3. 

For instance, this was one impacting the Item page where you may experience indefinite loading:
https://github.com/DSpace/dspace-angular/issues/3584 (It's already fixed and will be released in 7.6.3 / 8.1, hopefully later this month)

We also have a large number of caching / performance related fixes we are working on for 9.0 / 8.1 / 7.6.3.  Some have already been solved: https://github.com/orgs/DSpace/projects/31/views/1?filterQuery=label%3A%22performance+%2F+caching%22

I cannot guarantee these are the same issue you are seeing.  But, if they are not, then it's best to create a bug ticket with as much information as possible about how to reproduce the behavior (it's especially helpful if you can reproduce it on https://demo.dspace.org).  We *must* be able to reproduce the bug in order to solve it... bugs which cannot be easily reproduced are often difficult to track down until we can find others who see the same behavior.  We are an entirely volunteer team, so we rely on bug reporters to help us locate the problematic page or action/button before we can fix it. 


Tim

Lucas Silveira

unread,
Jan 6, 2025, 4:52:01 PM1/6/25
to DSpace Technical Support

Hi Tim,

Thank you for your response and the information. The issue I’m experiencing is indeed the same as the one described in #3584.

I appreciate your attention and the efforts of the team. I’ll look forward to the upcoming updates.

Best regards,
Lucas

Reply all
Reply to author
Forward
0 new messages