-
Notifications
You must be signed in to change notification settings - Fork 167
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
StaticFileServer
dumps file listing when directory is accessed and application is running in (at least) Tomcat
#11047
Comments
Hi @fluorumlabs , coudl you please provide versions? Thanks |
At least both LTS and v19 are affected. Since |
ok. Thanks, @fluorumlabs |
I couldn't replicate this running |
As far as I remember, |
Deploying the skeleton-starter-flow war to tomcat 9.0.39 I only get the result |
Same behavior can be observed with Not sure how |
That is the same it can only be done on a spring-boot project as far as I can find. |
Seems it is Spring boot specific. However, my observations/debugging shown that the actual file list is served by StaticFileServer. In fact, this is the default behavior of FileInputStream when File points to a directory |
Would seem so. Getting a Spring project to break on break points seems like a game of luck at times. |
|
Regarding checking if path points to a directory or not -- all these URLs point to the same directory:
The point is: just testing for |
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 Co-authored-by: caalador <[email protected]>
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 Co-authored-by: caalador <[email protected]>
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixe #11047 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java Co-authored-by: caalador <[email protected]>
Steps to reproduce:
Development mode:
http://localhost:8080/frontend/.;
in browserProduction mode:
https://start.vaadin.com/frontend/.;
in browserThe text was updated successfully, but these errors were encountered: