fix: resolve JSP syntax errors in multiple files#169
Merged
yingbull merged 8 commits intodevelop/coyotefrom May 12, 2025
Merged
Conversation
Reviewer's GuideThis PR resolves JSP syntax errors and overhauls adminbackupdownload.jsp to add error directives, null-safe session and security checks, cleaner file listing with JSTL and XSS protection, and corrects taglib misuse in ChooseAllergy2.jsp and MultiPageDocDisplay.jsp. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…admin backup download page
Author
|
@sourcery-ai review |
There was a problem hiding this comment.
Hey @AlexSilveira1 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
… backup download page
Author
|
@sourcery-ai review |
There was a problem hiding this comment.
Hey @AlexSilveira1 - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Escape file names before rendering (link)
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🔴 Security: 1 blocking issue, 1 other issue
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Author
|
@sourcery-ai review |
There was a problem hiding this comment.
Hey @AlexSilveira1 - I've reviewed your changes - here's some feedback:
- Consider replacing the heavy use of scriptlets (loops, out.println, session logic) with JSTL <c:forEach> and EL to make the JSP more readable and maintainable.
- Unify your error handling strategy—you have both errorPage="/errorpage.jsp" and forwards to “/error.jsp”, plus thrown exceptions; pick one consistent approach and path.
- Consider moving authentication and security checks out of the JSP into a servlet filter instead of inline security:oscarSec scriptlets for cleaner separation of concerns.
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…reaking-test-pipeline-on-branches
yingbull
approved these changes
May 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Resolve JSP syntax errors in multiple pages and enhance the admin backup download page with null-safe session handling, JSTL tag usage, and XSS-safe file listing
Bug Fixes:
Enhancements: