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

29 views
Skip to first unread message

lucasangelo...@gmail.com

unread,
Jan 3, 2025, 12:36:42 PM1/3/25
to DSpace Community

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 Community

unread,
Jan 6, 2025, 4:39:15 PM1/6/25
to DSpace Community
NOTE: This was answered on dspace-tech in this thread: https://groups.google.com/g/dspace-tech/c/cRT6H7E_nGY
Reply all
Reply to author
Forward
0 new messages