2023-04-26-73fa1ed introduced a regression for subscriptions API.
To Reproduce
Choose any instance that is running backend version 2023-04-26-73fa1ed.
Login to your account.
Open Subscriptions page.
Expected behavior
Account subscriptions should show up on the Subscriptions page.
Logs/Errors
GET /subscriptions API response:
Status 500
{
"error": "java.lang.IllegalArgumentException: Can't compare test expression of type [BasicSqmPathSource(uploader_id : String)] with element of type [User]\n\tat org.hibernate.query.sqm.internal.SqmCriteriaNodeBuilder.assertComparable(SqmCriteriaNodeBuilder.java:2098)\n\tat org.hibernate.query.sqm.tree.predicate.SqmInListPredicate.implyListElementType(SqmInListPredicate.java:138)\n\tat org.hibernate.query.sqm.tree.predicate.SqmInListPredicate.<init>(SqmInListPredicate.java:60)\n\tat org.hibernate.query.sqm.tree.predicate.SqmInListPredicate.<init>(SqmInListPredicate.java:47)\n\tat org.hibernate.query.sqm.internal.SqmCriteriaNodeBuilder.in(SqmCriteriaNodeBuilder.java:2618)\n\tat org.hibernate.query.sqm.tree.expression.AbstractSqmExpression.in(AbstractSqmExpression.java:124)\n\tat org.hibernate.query.sqm.tree.expression.AbstractSqmExpression.in(AbstractSqmExpression.java:31)\n\tat me.kavin.piped.server.handlers.auth.FeedHandlers.subscriptionsResponse(FeedHandlers.java:434)\n\tat me.kavin.piped.server.ServerLauncher.lambda$mainServlet$40(ServerLauncher.java:370)\n\tat io.activej.http.AsyncServlet.lambda$ofBlocking$0(AsyncServlet.java:43)\n\tat io.activej.promise.Promise.lambda$ofBlocking$12(Promise.java:250)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n",
"message": "Can't compare test expression of type [BasicSqmPathSource(uploader_id : String)] with element of type [User]"
}
Official Instance
Describe the bug
2023-04-26-73fa1ed introduced a regression for subscriptions API.
To Reproduce
Expected behavior
Account subscriptions should show up on the Subscriptions page.
Logs/Errors
GET
/subscriptions
API response:Browser, and OS with Version.
Not relevant
Additional context
No response