Open
Description
Upon first load of the services tab, I'm seeing a request to http://tenant-b.localtest.me/admin-ng/services/services.json?limit=50&offset=0&sort=date:DESC
, which throws a big ugly stack trace beginning with
2025-03-07 11:49:26,214 | WARN | (ServicesEndpoint:180) - Failed to sort services collection.
java.lang.IllegalArgumentException: Can't sort services by date.
at org.opencastproject.adminui.endpoint.ServicesEndpoint$ServiceStatisticsComparator.<init>(ServicesEndpoint.java:369) ~[?:?]
at org.opencastproject.adminui.endpoint.ServicesEndpoint.getServices(ServicesEndpoint.java:178) ~[?:?]
Now, the backend shouldn't be throwing that exception like that, but the query the admin ui is sending is also wrong/doesn't make sense, so I'm filing this in both :)