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

Parentheses in STIX patterns using properties outside projected entity causes error #124

Closed
pcoccoli opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pcoccoli
Copy link
Collaborator

Passing a STIX pattern such as [(url:value LIKE '%page/1%' AND x-oca-asset:hostName LIKE 'pc%')] to extract with a different entity type would generate invalid SQL:

ERROR    firepit.sqlitestorage:sqlitestorage.py:165 CREATE VIEW "nt" AS SELECT "network-traffic".* FROM "network-traffic" WHERE "id" IN (SELECT "network-traffic".id FROM "network-traffic"  INNER JOIN __queries ON "network-traffic".id = __queries.sco_id  WHERE query_id = 'q1' AND (()));: near ")": syntax error
@pcoccoli pcoccoli added the bug Something isn't working label May 21, 2024
@pcoccoli pcoccoli mentioned this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant