TeamPiped / Piped

An alternative privacy-friendly YouTube frontend which is efficient by design.
https://piped.video
GNU Affero General Public License v3.0
8.49k stars 702 forks source link

Subscription page stopped working on Backend version 2023-04-26-73fa1ed #2338

Closed goodness-from-me closed 1 year ago

goodness-from-me commented 1 year ago

Official Instance

Describe the bug

2023-04-26-73fa1ed introduced a regression for subscriptions API.

To Reproduce

  1. Choose any instance that is running backend version 2023-04-26-73fa1ed.
  2. Login to your account.
  3. 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]"
}

Browser, and OS with Version.

Not relevant

Additional context

No response

luckkmaxx commented 1 year ago

Same here, also in self hosted instances. I dont know how to get a previous version of the docker image since only "latest" tag seems avaliable.