Parameter 'uri' is always undefined

58 views
Skip to first unread message

J.A

unread,
Oct 14, 2024, 8:02:33 AM10/14/24
to DSpace Technical Support
Hello

After migrating to another server and installing the latest stable DSpace-CRIS (upgraded from 2022.01.01 to 2023.02.05), everything went well except when I imported the database, then I started getting this error:

There was an unexpected error (type=Bad Request, status=400).
Request is invalid or incorrect
java.lang.IllegalArgumentException: Configuration 'https://my-domain/server' or request 'undefined' is malformed

Looking at the console, i saw a bunch of 400 requests. Looking at the request parameters, I saw that the 'uri' parameter is always 'undefined', for example: /server/api/authz/authorizations/search/object?uri=undefined&feature=administratorOf&embed=feature
This repeats for all requests/values of 'feature' parameter

I verified config files, dropped DB/re-imported and re-indexed, nothing worked.

One thing I noticed is that this error only happened after I imported the database which leads me to suspect it's somehow related to the imported data but I can't say for sure

Not sure if the information I provided is sufficient but if you need further information please tell me
Message has been deleted

J.A

unread,
Oct 15, 2024, 12:47:05 AM10/15/24
to DSpace Technical Support
As i suspected, the problem was with the database. I had to use pg_restore tool to import the database (using the -v flag). Now I'm facing another problem that I did not encounter the first time i migrated (but not upgraded) DSpace. Everything is replaced with numbers (usernames, titles, descriptions etc.). I checked the database and it's fine (no numbers, has the right values). What could be causing this? (images provided below)


2.png3.png1.png
Reply all
Reply to author
Forward
0 new messages