Skip to content
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

about url #3

Open
ldbfpiaoran opened this issue Sep 9, 2019 · 3 comments
Open

about url #3

ldbfpiaoran opened this issue Sep 9, 2019 · 3 comments

Comments

@ldbfpiaoran
Copy link

First of all, thank you for the great inspiration for this project. I found a problem, but I am not sure about the path, I found that if the url is like this
Http://www.example.com/inter/test.json;a.js
The spring app won't think that the js file will be ignored when the request is made; the rest of the content
But the url path parser can still be complete

@GrrrDog
Copy link
Owner

GrrrDog commented Sep 13, 2019

Thank you, I'm glad that it's helpful.

I think I don't get your question/issue. Could you clarify?
Spring uses tomcat under the hood and Tomcaat support the path parameter. Therefore, in this url Http://www.example.com/inter/test.json;a.js, during parsing, Tomcat treats ;a.js as a path parameter. So path to a file will be /inter/test.json for Tomcat.

@ldbfpiaoran
Copy link
Author

He looks like this
image
The code uses endesWith to determine the end of the url path.
I found out that this problem exists in an open source system. Because the problem has not been confirmed by the other party, can it be communicated privately? Wechat or other

@GrrrDog
Copy link
Owner

GrrrDog commented Sep 16, 2019

Hmm... that's interesting.
https://twitter.com/antyurin or https://t.me/agrrrdog (telegram)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants