-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in panache, when using newline before from
#31117
Comments
/cc @FroMage (panache), @loicmathieu (panache) |
from
This has been fixed by #31419 |
@loicmathieu I can reproduce it even on the latest(3.7.1) Quarkus version. The issue should be reopened. |
Which module exactly are you using? |
@FroMage do you mean extension? The reproduced, same as before, uses |
OK, so this is with HR/Panache, whereas #31419 only tested this with Kotlin and ORM/Panache, so it's possible that the fix is missing in HR/Panache, reopening. |
This is actually all sorts of broken. I tried to pass this job on to ORM, which now supports projections without |
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Describe the bug
I have an application, made with Hibrnate reactive and Panache. I run
find
method for HQL query with a new-line character beforeFROM
clause. The operation fails with an exception.Expected behavior
New lines in query should not affect the result
Actual behavior
An exception is thrown
How to Reproduce?
git clone [email protected]:fedinskiy/reproducer.git -b reproducer/hibernate-newline
mvn quarkus:dev
src/main/java/io/quarkus/ts/hibernate/reactive/http/PanacheEndpoint.java
, add a space between\n
and "FROM" on line 1196.
$ curl http://localhost:8080/library/by-author/Dlugi [{"title":"Slovník"}]
Output of
uname -a
orver
6.7.3-200.fc39.x86_64
Output of
java -version
21.0.1, vendor: Eclipse Adoptium
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.7.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Additional information
See #29838 for a similar bug
The text was updated successfully, but these errors were encountered: