-
Notifications
You must be signed in to change notification settings - Fork 498
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
Fix the code analysis error. #479
Conversation
(1) Append space in string literal. (2) Guard against cross-site scripting.
…tion of this PR to CHANGELOG.md in root of project.
@pandaapo there are some cheskstyle error in you PR. Run |
Running |
You can configure plugin in IDEA following the doc from Spring Cloud 代码规范. |
…ANGELOG.md. Resolve cheskstyle error.
Click "Resolve conversation" after you having fixed that. |
This pull request fixes 1 alert when merging c74c380 into 4ed19e2 - view on LGTM.com fixed alerts:
|
@pandaapo This doesn't look like it fixes the cross site issue?Check here for solution Cross-site scripting |
I used Filter to handle the request, and ResponseBodyAdvice to handle the Response. Does it not work? |
Maybe should change a new method to fix this. |
|
Try the second method. If the implementation is complicated or difficult to implement, then use the first method. |
This pull request fixes 1 alert when merging 58ae9a5 into a91a380 - view on LGTM.com fixed alerts:
|
@pandaapo It seems that every commit will trigger LGTM.com analyzing. |
…Wrapper / ResponseBodyAdvise' method. Use owasp esapi to handle the invocation directly that has alerts.
This pull request fixes 6 alerts when merging a7d0f1d into a91a380 - view on LGTM.com fixed alerts:
|
This pull request fixes 6 alerts when merging d9d0352 into a91a380 - view on LGTM.com fixed alerts:
|
@pandaapo You can cherry-pick this PR to branch 2020 and 2021. It will be in version 1.8.0. I will merge it after version 1.7.0 of 2020 and 2021 is released. |
@pandaapo You should fix these error before you cherry-pick to other branches. |
@pandaapo I have used dependabot to fix this in main branch. If you cherry-pick to 2020 and 2021 branch, you should check the dependency version before you pushing your commit. |
I have done as you said. |
PR Type
Describe what this PR does for and how you did.
Fix the code analysis error: (1) Append the missing space in string literal. (2) Using Filter and @ControllerAdvice to guard against cross-site scripting.
Adding the issue link (#xxx) if possible.
#462
Note
Checklist
Codecov Report
should not decrease.Checklist (Optional)