error on "Next & previous results": ajax error message and no results showing up
I'm getting a 500 on https://openqa.opensuse.org/tests/1831535#next_previous due to [2021-07-09T09:20:25.0092 UTC] [error] [sNVmMoPb-wu6] Can't call method "id" on an undefined value at /usr/share/openqa/script/../lib/OpenQA/WebAPI/Controller/Test.pm line 119.. Known?
Steps to reproduce¶
Go to https://openqa.opensuse.org/tests/1831490#next_previous or any other "next_previous" on o3 at least. Problem is reproducible on osd as well: https://openqa.suse.de/tests/5989050#next_previous
The problem was that some bugrefs don't have an entry in the Bugs table. I wasn't aware of that.
I was able to remove the problematic statement as it was not needed anyway, and in the other functions
$bug was already checked first before accessing methods.
I added a bugref without a Bugs database entry now to the tests.