Can't save or print rourke2020 form#623
Merged
Merged
Conversation
…017, 2020, ran make lock to fix jna dependency diff issue
Reviewer's guide (collapsed on small PRs)Reviewer's GuideImplements safe parameter equals checks to prevent NullPointerExceptions in Frm2Action, replaces deprecated styleId attributes with id and name on Rourke JSP form tags to restore submit behavior, and updates the JNA dependency version in the lock file. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Dependency ReviewThe following issues were found:
License Issuespom.xml
OpenSSF Scorecard
Scanned Files
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `src/main/java/ca/openosp/openo/form/Frm2Action.java:112` </location>
<code_context>
newID = formId;
}
//if we are printing all pages of form, grab info from db and merge with current page info
- else if (request.getParameter("submit").equals("printAll") || request.getParameter("submit").equals("printAllJasperReport")) {
+ else if ("printAll".equals(request.getParameter("submit")) || "printAllJasperReport".equals(request.getParameter("submit"))) {
if (rec instanceof JasperReportPdfPrint) {
</code_context>
<issue_to_address>
**suggestion:** Use of constant-first equals improves null safety.
This change prevents NullPointerExceptions if 'submit' is not present, enhancing code robustness.
Suggested implementation:
```java
else if ("printAll".equals(request.getParameter("submit")) || "printAllJasperReport".equals(request.getParameter("submit"))) {
```
```java
} else if ("true".equals(request.getParameter("update"))) {
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
yingbull
approved these changes
Sep 24, 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.
In this PR I have fixed:
Summary by Sourcery
Fix form submission and printing errors for Rourke forms by preventing null pointer exceptions, updating JSP form attributes, and resolving a JNA dependency mismatch.
Bug Fixes:
Build: