BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

Deserialization of invalid files with single references instead of aggregations

Open hlg opened this issue 2 years ago • 0 comments

When checking in an IFC-SPF with a single reference where an aggregation is expected, then the file is processed by the deserializer without complaint. However, invalid data is created in the database, causing issues later on, when retrieving the data. Instead, the file should be rejected with an error message.

We need to throw a user exception in the serializer in this place. It should be similar to the opposite case, when an aggregation is detected, but simple value expected.

Here are two test files:

hlg avatar Aug 25 '22 08:08 hlg