Skip to content
Snippets Groups Projects
Commit ac3bc48d authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: empty string is equivalent to no name

parent 2fd4c78f
No related branches found
No related tags found
1 merge request!105REL: v0.4.0
Pipeline #33251 passed
......@@ -17,6 +17,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ###
### Fixed ###
- an empty string as name is treated as no name (as does the server). This, fixes
queries for identifiables since it would contain "WITH name=''" otherwise
which is an impossible condition. If your cfoods contained this case, it is
possible that Records are now matched that were not before. You need to adjust
your identifiable definition if this is not wanted.
### Security ###
......
......@@ -62,6 +62,8 @@ class Identifiable():
self.path = path
self.record_type = record_type
self.name = name
if name is "":
self.name = None
self.properties: dict = {}
if properties is not None:
self.properties = properties
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment