You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows when the DevUI renders the template main.html the path are not properly escaped leading to the page not being able to be used as JavaScript is broken.
The code here takes the paths as is and put them into the HTML, leading to the following error provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70).
Expected behavior
The paths should be properly escaped using \\ for path separators on Windows.
Actual behavior
It lead to the JavaScript error: provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70)
How to Reproduce?
Create/move a project into a path where the directory would start with an invalid Unicode character i.e. c:\userproject.
Describe the bug
On Windows when the DevUI renders the template main.html the path are not properly escaped leading to the page not being able to be used as JavaScript is broken.
The code here takes the paths as is and put them into the HTML, leading to the following error
provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70)
.Expected behavior
The paths should be properly escaped using
\\
for path separators on Windows.Actual behavior
It lead to the JavaScript error:
provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70)
How to Reproduce?
Create/move a project into a path where the directory would start with an invalid Unicode character i.e.
c:\userproject
.I have created and uploaded a sample project to Github as a sample:
https://github.com/bwolkerstorfer/sample-quarkus-path-issue
Steps:
gradle quarkusDev
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.10.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)------------------------------------------------------------ Gradle 7.5 ------------------------------------------------------------ Build time: 2022-07-14 12:48:15 UTC Revision: c7db7b958189ad2b0c1472b6fe663e6d654a5103 Kotlin: 1.6.21 Groovy: 3.0.10 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 17.0.3 (Eclipse Adoptium 17.0.3+7) OS: Windows 11 10.0 amd64
Additional information
No response
The text was updated successfully, but these errors were encountered: