You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Response: {"type":"about:blank","title":"Bad Request","status":400,"detail":"Validation of record 21.11152/474a4b1c-de93-4d4a-b33d-1d32d63baf4b failed. Reason:\nPID in record was given, but it was not the same as the PID in the URL. Ignore request, assuming this was not intended.","instance":"/api/v1/pit/pid/"}
The url http://localhost:8082/api/v1/pit/pid/?dryrun=false is not correct, should be http://localhost:8082/api/v1/pit/pid/21.11152/474a4b1c-de93-4d4a-b33d-1d32d63baf4b?dryrun=false.
Unfortunately, the openApi/swagger documentation has issues displaying this properly. If this fixes your issue, I will create a new one to see at some point how this can be improved.
For documentation: This is the url swagger exposes: /api/v1/pit/pid/** (see at the docs on our website)
Pfeil
changed the title
Updating records that contain a "URL" attribute
Updating record results in error about wrong PID given
Dec 4, 2024
With the latest version, updating a Handle Record like 21.11152/474a4b1c-de93-4d4a-b33d-1d32d63baf4b which contains the "URL" attribute for redirecting cannot be updated.
This is the error message:
Response: {"type":"about:blank","title":"Bad Request","status":400,"detail":"Validation of record 21.11152/474a4b1c-de93-4d4a-b33d-1d32d63baf4b failed. Reason:\nPID in record was given, but it was not the same as the PID in the URL. Ignore request, assuming this was not intended.","instance":"/api/v1/pit/pid/"}
This is the request URL:
http://localhost:8082/api/v1/pit/pid/?dryrun=false
This is the corresponding JSON record:
{
"pid": "21.11152/474a4b1c-de93-4d4a-b33d-1d32d63baf4b",
"entries": {
"21.T11148/076759916209e5d62bd5": [
{
"key": "21.T11148/076759916209e5d62bd5",
"name": "kernelInformationProfile",
"value": "21.T11148/b9b76f887845e32d29f7"
}
],
"21.T11148/397d831aa3a9d18eb52c": [
{
"key": "21.T11148/397d831aa3a9d18eb52c",
"name": "dateModified",
"value": "2024-10-14T07:16:46+00:00"
}
],
"21.T11148/82e2503c49209e987740": [
{
"key": "21.T11148/82e2503c49209e987740",
"name": "checksum",
"value": "{ "sha256sum": "a92ad3bd2b0856b70d3f98cb2fa21964ea7f91218c46e327b65a0937c50a885c" }"
}
],
"21.T11148/aafd5fb4c7222e2d950a": [
{
"key": "21.T11148/aafd5fb4c7222e2d950a",
"name": "dateCreated",
"value": "2024-10-14T07:16:46+00:00"
}
],
"21.T11148/b8457812905b83046284": [
{
"key": "21.T11148/b8457812905b83046284",
"name": "digitalObjectLocation",
"value": "https://paint-database.org/WRI1030197/WRI1030197-catalog-stac.json"
}
],
"21.T11148/1a73af9e7ae00182733b": [
{
"key": "21.T11148/1a73af9e7ae00182733b",
"name": "contact",
"value": "https://orcid.org/0009-0007-0235-4995"
},
{
"key": "21.T11148/1a73af9e7ae00182733b",
"name": "contact",
"value": "https://orcid.org/0000-0002-2233-1041"
},
{
"key": "21.T11148/1a73af9e7ae00182733b",
"name": "contact",
"value": "https://orcid.org/0000-0001-9648-4385"
},
{
"key": "21.T11148/1a73af9e7ae00182733b",
"name": "contact",
"value": "https://orcid.org/0000-0002-9197-1739"
},
{
"key": "21.T11148/1a73af9e7ae00182733b",
"name": "contact",
"value": "https://orcid.org/0000-0002-4705-6285"
}
],
"21.T11148/2f314c8fe5fb6a0063a8": [
{
"key": "21.T11148/2f314c8fe5fb6a0063a8",
"name": "licenseURL",
"value": "https://cdla.dev/permissive-2-0/"
}
],
"21.T11148/c83481d4bf467110e7c9": [
{
"key": "21.T11148/1c699a5d1b4ad3ba4956",
"name": "digitalResourceType",
"value": "application/json"
}
]
}
}
The text was updated successfully, but these errors were encountered: