You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A request to /api/v2/available-domains?collected=eq:false does not return the not collected domains but an empty list instead. However, a request to /api/v2/available-domains?collected=eq:true returns only collected domains, as expected. It seems the negative filtering is broken. Maybe because the attribute does not exist in this case?
Hey @exploide - I've validated this issue and I think you have the right idea. The collected property is not being set on all Domain or AZTenant nodes which breaks the query.
For now, I believe you can work around this by leveraging the following cypher query: MATCH (n) WHERE (n:Domain OR n:AZTenant) AND n.collected IS NULL RETURN n
Description:
A request to
/api/v2/available-domains?collected=eq:false
does not return the not collected domains but an empty list instead. However, a request to/api/v2/available-domains?collected=eq:true
returns only collected domains, as expected. It seems the negative filtering is broken. Maybe because the attribute does not exist in this case?Component(s) Affected:
Steps to Reproduce:
/api/v2/available-domains?collected=eq:true
and see that the three collected domains are returned correctly./api/v2/available-domains?collected=eq:false
and see that an empty list is returned instead of the two not collected domains.Expected Behavior:
I would have expected that the negative filtering works as well as the positive filtering does.
Actual Behavior:
Negative filtering does not work.
Environment Information:
BloodHound: 5.9.0
Collector: what ever you used to generate the sample data
Potential Solution (Optional):
I could imagine this is because the
collected
property does not exist in the neo4j data for not collected domains. This needs to be worked around.Contributor Checklist:
The text was updated successfully, but these errors were encountered: