Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization of invalid files with single references instead of aggregations #1269

Open
hlg opened this issue Aug 25, 2022 · 0 comments
Open
Labels

Comments

@hlg
Copy link
Member

hlg commented Aug 25, 2022

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 hlg added the bug label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant