Closed claudijd closed 7 years ago
This seems to only affect mongodb, reverted back to sqlite DB store until this is fixed
This specifically affects mongodb instances and it always returns the cache result (regardless if it's a proper match). By commenting out the caching logic, I was able to temporarily fix this in prod...
I believe this is possibly a bug in the fetch_cached_result method in the mongodb abstraction.
back on mongo, but with DB caching logic disabled until the bug is fixed.
Reproducability here:
curl -k -X POST https://sshscan.rubidus.com/api/v1/scan?target=ssh.mozilla.com {"uuid":"fdfe4f31-e4f1-4928-8b4f-806c317da389"}
curl -k -X POST https://sshscan.rubidus.com/api/v1/scan?target=github.com {"uuid":"fdfe4f31-e4f1-4928-8b4f-806c317da389"}