Error on creating license
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Checklist
hideTestRail: Results
Activity
Show:
Tino R. December 18, 2019 at 12:18 PM
actually i was able to reproduce this error with current folio-testing
(mod-licenses-2.1.0-SNAPSHOT.115
)
prerequisites:
"customProperties"
needs to be present with a picklist valueMultiple requests need to be made in parallel
result:
you will see some requests completing with
201
and some failing with
422
:
{
"total":2,
"_embedded":{
"errors":[
{
"message":"Property customProperties is type-mismatched",
"path":"",
"_links":{
"self":{
"href":"https://folio-testing-okapi.aws.indexdata.com:8080"
}
}
},
{
"message":"Property status is type-mismatched",
"path":"",
"_links":{
"self":{
"href":"https://folio-testing-okapi.aws.indexdata.com:8080"
}
}
}
]
}
}
you can reproduce by adapting following bash script:
#!/bin/bash
PAYLOAD='{"status":"active","type":"local","customProperties":{"illElectronic":[{"value":"permitted_(explicit)"}]},"name":"Test"}'
TOKEN="eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6IjQ2NjQ2ZDc4LWZlYWYtNWIxMC1iMmQ1LTUyZDg2Njg5ZmIwOCIsImlhdCI6MTU3NjY3MDE4NywidGVuYW50IjoiZGlrdSJ9.8vkyuPtMhh5Qv_1HAweo5bmJuI0tO9a4rixLA7ym6cI"
CMD="curl --request POST \
--url https://folio-testing-okapi.aws.indexdata.com/licenses/licenses \
--header 'content-type: application/json' \
--header 'x-okapi-tenant: diku' \
--header 'x-okapi-token: $TOKEN' \
--data '$PAYLOAD'
-w '\n'"
for i in {1..5}
do
eval $CMD&
done
steve.osguthorpe October 18, 2019 at 1:42 PM
Lots of "Unknown macro:" entries in the actual JSON. Looks like this happened in the UI?
Cannot Reproduce
Details
Details
Assignee
steve.osguthorpe
steve.osguthorpeReporter
Owen Stephens
Owen StephensPriority
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created October 18, 2019 at 11:45 AM
Updated February 10, 2020 at 12:07 PM
Resolved October 30, 2019 at 2:37 PM
TestRail: Cases
TestRail: Runs
On attempting to create a license an error was shown in the browser.
The call was (using Curl):
Error was: