-
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
StringIndexOutOfBoundsException in panache when using project
and a linebreak before FROM
#29838
Labels
Milestone
Comments
/cc @FroMage, @loicmathieu |
geoand
added
area/hibernate-orm
Hibernate ORM
and removed
area/hibernate-orm
Hibernate ORM
labels
Dec 13, 2022
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Dec 14, 2022
@loicmathieu can you think of any reason why #29851 would not work? I can't say I know much about Panache, but this simple fix seems to make this case work properly |
@geoand yes, it should works |
Okay, taking it out of draft then |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Dec 14, 2022
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Dec 14, 2022
geoand
added a commit
that referenced
this issue
Dec 14, 2022
Ensure that new line chars don't break Panache projection
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Dec 20, 2022
Fixes: quarkusio#29838 (cherry picked from commit 756568a)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 9, 2023
Fixes: quarkusio#29838 (cherry picked from commit 756568a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When executing a Panache query that (a) contains a
project
ion and (b) has a line break before theFROM
clause, aStringIndexOutOfBoundsException
is thrown:I attached a reproducer containing this panache repository:
quarkus-reproducer-panache-from-linebreak.zip
The issue seems to be in
CommonPanacheQueryImpl#L95
:Where
endSelect
is-1
because thefrom
is not necessarily surrounded by spaces in all cases, such as in the reproducer.The text was updated successfully, but these errors were encountered: