When the sidebar throws an error, handle that better (for all tools, ideally). The menu item in the top nav should still be there, and the rest of the page body should still render. See also @exceptionless and [#1599]
https://sourceforge.net/apps/trac/sourceforge/ticket/21552
I have yesterday opened a new project, committed some code and opened some tickets. But after some time I got an error 500 on the ticket page: https://sourceforge.net/p/xprofile/tickets
Looks like some custom search bins were created with labels that solr doesn't recognize. We'll need to account for this in the code, but in the meantime, the admin can fix his Tracker by going to:
https://sourceforge.net/p/xprofile/admin/tickets/bins/
and removing the 'label:' terms from the Open Bugs and Open Features search bins.
I get this with all searches, not just the label ones. I think there's something weird in the data.
The traceback is:
Originally by: sworddragon
I have removed all labels and all is working fine now. If I add "label:Bug" in Open Bugs again the error happens again. Are labels in searches not allowed or is this a bug?
Ah, I figured it out. Use labels plural, like "labels:Bug", and it'll work.
I'll keep this ticket open. We should make it not error out so drastically if something like this happens
Originally by: sworddragon
Yes, this is working. I had made a better look that it is "labels" and not "label". But it is good if this will not end in such an error in the future.
Ticket sidebar needs to be more resilient in general. When solr was down momentarily recently, the sidebar errored so no ticket page could by viewed.
Diff:
Related
Tickets: #1599
Fix is on allura js/2742. To test, create a ticket bin with a query like "label:Bug". Confirm that the tracker app still works, but ticket bins are hidden in the sidebar.
Originally by: sworddragon
Is this version already online? I still get an error 500.
Not yet, we've just made the fix in the code. It'll go out in our next code push, which will probably be later this week.
Where are you getting the 500? This won't fix any root bugs, just handle it better.
Originally by: sworddragon
For example on https://sourceforge.net/p/xprofile/tickets if such an invalid search is saved.
Looks good, tested fine. Needed to create at least 1 ticket for the problem to surface, tested fine, merged to dev.