Weird exception in case of missing RecordType for parent
I tried inserting an entity, but obviously forgot to insert the RecordType "Person" before
<Record id="-1" cuid="-1--acc2c922-4bf0-40f8-9017-26df8cdc348b">
<Parent name="Person"/>
<Property name="first_name" importance="FIX" flag="inheritance:FIX"/>
<Property name="last_name" importance="FIX" flag="inheritance:FIX">AuthorA</Property>
</Record>
The server responds with:
HTTPServerError: An unexpected server error has occurred.
SRID = 20d015c5-5c0a-4436-9ba1-3129575d2b5e
Please report this server error to and include the SRID into your report.
The server log, however, says:
linkahead | UNKNOWN ERROR
linkahead |
linkahead | org.caosdb.server.database.exceptions.EntityDoesNotExistException
linkahead | at org.caosdb.server.database.backend.transaction.GetIDByName.execute(GetIDByName.java:69)
Expected behaviour would be some error message like "Record type Person
does not exist."
For reproducing just use a fresh caosdb-deploy with the debug
profile.