Fix intermittent 404 error for HL7 lab upload#2051
Conversation
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/a928dd25-618e-4553-a502-c49db8b1b3d5 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
|
Failed to generate code suggestions for PR |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Introduces a dedicated Struts “view gate” action for the HL7 Lab Upload page so that plain GET page loads no longer execute the multipart upload handler, addressing an intermittent 404/error pattern seen when rendering the upload form.
Changes:
- Added
ViewInsideLabUpload2Actionto gate GET/HEAD access to the HL7 upload JSP behind_lab w. - Mapped new route
lab/CA/ALL/ViewInsideLabUploadinstruts-lab.xmland updated multiple navigation links to use it. - Added a focused unit test covering privilege enforcement and HTTP method gating behavior.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/java/io/github/carlos_emr/carlos/lab/gate/ViewInsideLabUpload2Action.java |
New GET/HEAD-only gate action enforcing _lab w and blocking non-GET methods. |
src/main/webapp/WEB-INF/classes/struts-lab.xml |
Adds a new Struts action mapping for the view gate forwarding to testUploader.jsp. |
src/main/webapp/WEB-INF/jsp/admin/admin.jsp |
Updates HL7 Lab Upload popup link to the new view route. |
src/main/webapp/WEB-INF/jsp/administration/leftNav.jspf |
Updates admin left-nav HL7 Lab Upload link to the new view route. |
src/main/webapp/WEB-INF/jsp/oscarMDS/Index.jsp |
Updates HL7 Lab Upload link to open the new view route. |
src/main/webapp/WEB-INF/jsp/web/inboxhub/InboxhubTopbar.jsp |
Updates topbar HL7 Lab Upload link to the new view route. |
src/test/java/io/github/carlos_emr/carlos/lab/gate/ViewInsideLabUpload2ActionTest.java |
Adds unit tests for auth/privilege enforcement and 405 handling on POST. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
@copilot apply changes based on the comments in this thread also do your own review on these changes and this issue, is the actual likely cause of the reported behavior fixed, and if not, what else is the cause? |
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/c89af910-d17f-47d1-8e6c-6a1d8c6b5702 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
|
@copilot adjust the code to meet the quality gate without causing breaking changes. Quality Gate Failed Quality Gate failed Failed conditions |
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/1928b955-1f70-4dc2-acb4-4ba35cef21c8 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/1928b955-1f70-4dc2-acb4-4ba35cef21c8 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/1928b955-1f70-4dc2-acb4-4ba35cef21c8 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/1928b955-1f70-4dc2-acb4-4ba35cef21c8 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Agent-Logs-Url: https://github.com/carlos-emr/carlos/sessions/1928b955-1f70-4dc2-acb4-4ba35cef21c8 Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Adjusted the HL7 upload gate and focused unit test to reduce new-code duplication while preserving the route behavior. Core fix is in 05c402b, with final cleanup in 2815a80. Local lightweight checks passed; Maven test execution is still blocked in the sandbox by external dependency resolution for jitpack.io artifacts. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
|
@phc007 at your leisure, if you can test this that would be great. If you have a fake hl7 we can get into the test harness or you can send to Ben (Ben@ma.. same as mine) so he can try and run repeated tests with claude or codex on the failure that would be great too. @Ben-Heerema |
|
I can point you to
https://github.com/carlos-emr/carlos/tree/develop/src/test/resources/labs
for various labs
Conformation testing will give you access to Excelelris ON examples
note that their labs are XML wrapped HL7
If I have any lying around from my conformance that are wrapped I will
upload to source in that directory
…On Wed, May 20, 2026 at 12:20 PM Michael Yingbull ***@***.***> wrote:
*yingbull* left a comment (carlos-emr/carlos#2051)
<#2051 (comment)>
@phc007 <https://github.com/phc007> at your leisure, if you can test this
that would be great. If you have a fake hl7 we can get into the test
harness or you can send to Ben ***@***.*** same as mine) so he can try and
run repeated tests with claude or codex on the failure that would be great
too. @Ben-Heerema <https://github.com/Ben-Heerema>
—
Reply to this email directly, view it on GitHub
<#2051 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACURMBLUEDMEHH6BCDGBZC343XLLHAVCNFSM6AAAAACYOW4HLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKMBQGQYDOMJUHE>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
I have just committed some sample ExcellerisON standard test files
including sample PDF embedded in HL7 embedded in XML
#2202
…On Wed, May 20, 2026 at 2:08 PM Peter ***@***.***> wrote:
I can point you to
https://github.com/carlos-emr/carlos/tree/develop/src/test/resources/labs
for various labs
Conformation testing will give you access to Excelelris ON examples
note that their labs are XML wrapped HL7
If I have any lying around from my conformance that are wrapped I will
upload to source in that directory
On Wed, May 20, 2026 at 12:20 PM Michael Yingbull <
***@***.***> wrote:
> *yingbull* left a comment (carlos-emr/carlos#2051)
> <#2051 (comment)>
>
> @phc007 <https://github.com/phc007> at your leisure, if you can test
> this that would be great. If you have a fake hl7 we can get into the test
> harness or you can send to Ben ***@***.*** same as mine) so he can try and
> run repeated tests with claude or codex on the failure that would be great
> too. @Ben-Heerema <https://github.com/Ben-Heerema>
>
> —
> Reply to this email directly, view it on GitHub
> <#2051 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACURMBLUEDMEHH6BCDGBZC343XLLHAVCNFSM6AAAAACYOW4HLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKMBQGQYDOMJUHE>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|



Uh oh!
There was an error while loading. Please reload this page.