clusterfuzz
clusterfuzz copied to clipboard
The potential issue in data_handler.py
Hi There
I read the code in data_handler.py, and found the following potential issue, can you please confirm?
https://github.com/google/clusterfuzz/blob/master/src/python/datastore/data_handler.py#L639
metadata = data_types.TestcaseUploadMetadata.query(
data_types.TestcaseUploadMetadata.testcase_id == testcase_id).get()
The query "data_types.TestcaseUploadMetadata.testcase_id == testcase_id" should be "data_types.TestcaseUploadMetadata.testcase_id == existing_testcase_id"
Thanks Peng
Thanks @lipeng28 , can you submit a PR patch for this.
@inferno-chromium , please review this PR: https://github.com/google/clusterfuzz/pull/2355