CYBEX-P / tahoe

A Cyberthreat Language (CTL) to replace STIX
Other
0 stars 1 forks source link

[DAM] creates empty attribute when used #53

Closed nachobacanful closed 3 years ago

nachobacanful commented 4 years ago

when executing DAM_backend.find(), it creates the following unwanted item in the DB. Screenshot_20200827_132813

The problem is the following line: https://github.com/CYBEX-P/tahoe/blob/ca44308a81710e67a79a12facc6e41fe53d7cf84/tahoe/DAM.py#L59

when backends are assigned via: https://github.com/CYBEX-P/tahoe/blob/ca44308a81710e67a79a12facc6e41fe53d7cf84/DAM_demo.py#L21-L24

it creates a problem where defining _backend=NoBackend() has no effect.

this issue can easily be solved by no using the User() object but there is a deeper issue with the backend assignment.