midas status page shows blank if there is a bogus equipment
we had a bogus entry in /equipment, it did not have the usual /eq/xxx/statistics and the midas status page was showing completely empty because of a javascript exception trying to access (I should have written it down, but I think it was) "events_sent". I hope this can be reproduced easily. K.O.
Comments (4)
-
reporter -
Are you using an older MIDAS version? I believe this was fixed in May by this commit from Stefan:
https://bitbucket.org/tmidas/midas/commits/a547b4f58629f0fc4178bf7dabff94a1824453c4
-
- changed status to resolved
KO seems to agree that this seems fixed in current develop MIDAS.
He notes that a better check in that loop might be to add a try...catch statement that catches all the different ways that the equipment directory could be mal-formed. For instance, to catch an equipment folder that has 'Common' subdir, but is missing 'Common/Status'. Add that to the list as a future improvement...
-
- changed status to closed
I implemented the equipment display with a try...catch block as proposed.
- Log in to comment
Yes, easy to reproduce. ODB mkdir /equipment/aaa and the midas status page will be blank (empty). K.O.