Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Cannot Reproduce
-
None
-
-
ERM Ready for Development, ERM Sprint 75
Description
On attempting to create a license an error was shown in the browser.
The call was (using Curl):
curl 'https://folio-testing-okapi.aws.indexdata.com/licenses/licenses' -H 'Sec-Fetch-Mode: cors' -H 'Origin: https://folio-testing.aws.indexdata.com' -H 'X-Okapi-Tenant: diku' -H 'X-Okapi-Token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6ImYxM2JiMmFkLTllMzctNTI2ZS1hZjU0LTFlZDEwOGE1M2UxMCIsImlhdCI6MTU3MTM5NjcwOSwidGVuYW50IjoiZGlrdSJ9.-Rzge-k-ieAjqgX13ifqhgeQjTb6enbxxV3fxOXjLWM' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Referer: https://folio-testing.aws.indexdata.com/licenses/create?sort=name&filters=status.Active' --data-binary '{"status":"active","type":"local","customProperties":{"authorisedUsers":"","concurrentAccess":"","walkInAccess":"","remoteAccess":"","illElectronic":"","illSecureElectronic":"","illPrint":"","reservesElectronic":"","coursePackElectronic":"","coursePackPrint":"","copyDigital":"","copyPrint":"","undefined":[
Unknown macro: {"_delete"}],"scholarlySharing":[
Unknown macro: {"value"}]},"name":"OS Test License 1","startDate":"2019-10-01","contacts":[
Unknown macro: {"user"}],"orgs":[{"org":
Unknown macro: {"name"},"role":"licensor"}],"docs":[
Unknown macro: {"_delete"}],"supplementaryDocs":[
Unknown macro: {"_delete"}],"id":"045f6296-da43-4dfb-9841-09b6d888279a"}' --compressed
Error was:
{{
{
"total": 3,
"_embedded": {
"errors": [
{
"message": "Property customProperties is type-mismatched",
"path": "",
"_links": {
"self":Unknown macro: { "href"}}
},
{
"message": "Property type is type-mismatched",
"path": "",
"_links": {
"self":Unknown macro: { "href"}}
},
{
"message": "Property status is type-mismatched",
"path": "",
"_links": {
"self":Unknown macro: { "href"}}
}
]
}
}