Closed Onkar1300 closed 2 months ago
/gcbrun
Not sure this is a worthwhile change. Why do you want it?
Not sure this is a worthwhile change. Why do you want it?
Hi Jonathan, If https://clusterfuzz.corp.google.com/issue is accesed without any testcase_id, the argument to 'get_testcase()' is None which eventually leads to the following error: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' To resolve the issue, a None check is added to redirect to None 'testcase_id' doesn't exist. instead of reporting TypeError.
Not sure this is a worthwhile change. Why do you want it?
Hi Jonathan, If https://clusterfuzz.corp.google.com/issue is accesed without any testcase_id, the argument to 'get_testcase()' is None which eventually leads to the following error: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' To resolve the issue, a None check is added to redirect to None 'testcase_id' doesn't exist. instead of reporting TypeError.
When are you directed to this URL though?
Not sure this is a worthwhile change. Why do you want it?
Hi Jonathan, If https://clusterfuzz.corp.google.com/issue is accesed without any testcase_id, the argument to 'get_testcase()' is None which eventually leads to the following error: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' To resolve the issue, a None check is added to redirect to None 'testcase_id' doesn't exist. instead of reporting TypeError.
When are you directed to this URL though?
Whenever web-security-scanner@google.com tries to access https://clusterfuzz.corp.google.com/issue, it triggers this error log in ClusterFuzz logs
Why is this bot trying to access that URL? Can the bot be fixed?
Why is this bot trying to access that URL? Can the bot be fixed?
it seems like for security checks, web-security-scanner@google.com tries to access https://clusterfuzz.corp.google.com/issue which raises the above error. We are not aware how to fix the bot such that it does not access https://clusterfuzz.corp.google.com/issue.
OK, then I don't think we should make this change. We shouldn't special case things so a security scanner doesn't get a 500.
Redirect the page to 'Testcase not found' instead of reporting error log when accessing issue with 'None' testcase_id