diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff65f2b46cb5f54858840bcb6f3a29a265cd7e7..fbc8e594f86a46c8e0118f1654af71345ef9f1f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Denying a role permission has no effect [#196](https://gitlab.com/caosdb/caosdb-server/-/issues/196). See security notes below. +* Missing RecordType leads to unexpected server error + [#166](https://gitlab.com/caosdb/caosdb-server/-/issues/166) ### Security ### diff --git a/src/main/java/org/caosdb/server/jobs/Job.java b/src/main/java/org/caosdb/server/jobs/Job.java index 0e9d7ef79377884853caa2198c84d428aed38e01..9da74edd0db86f6d81a8636020afcdaf3faa9e09 100644 --- a/src/main/java/org/caosdb/server/jobs/Job.java +++ b/src/main/java/org/caosdb/server/jobs/Job.java @@ -555,7 +555,7 @@ public abstract class Job { * * @param entity the entity to be resolved. * @return the resolved entity. - * @throws EntityWasNotUniqueException if the resolution failed due to ambuiguity of the name. + * @throws EntityWasNotUniqueException if the resolution failed due to ambiguity of the name. */ protected EntityInterface resolve(final EntityInterface entity) throws EntityWasNotUniqueException { diff --git a/src/main/java/org/caosdb/server/jobs/core/Inheritance.java b/src/main/java/org/caosdb/server/jobs/core/Inheritance.java index 33c7772811d36a5b9430556fc8926e88e2cd302c..a1bd800c7ca40b28d7b9ff27dd8f828ed112891f 100644 --- a/src/main/java/org/caosdb/server/jobs/core/Inheritance.java +++ b/src/main/java/org/caosdb/server/jobs/core/Inheritance.java @@ -119,7 +119,7 @@ public class Inheritance extends EntityJob { } // implement properties - if (getEntity().hasProperties()) { + if (getEntity().getEntityStatus() == EntityStatus.QUALIFIED && getEntity().hasProperties()) { propertyLoop: for (final Property property : getEntity().getProperties()) { final ArrayList<Property> transfer = new ArrayList<>();