You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@struts.apache.org by "lukaszlenart (via GitHub)" <gi...@apache.org> on 2026/09/12 12:43:25 UTC
[PR] WW-5734 test(jasperreports7): run the plugin end-to-end on an embedded Tomcat [struts]
lukaszlenart opened a new pull request, #1924:
URL: https://github.com/apache/struts/pull/1924
Fixes [WW-5734](https://issues.apache.org/jira/browse/WW-5734)
## Why
The jasperreports7 plugin had never been exercised outside Spring's `MockHttpServletResponse` — no sample app uses it — which is how WW-5731, WW-5732 and WW-5733 (every export an empty `200` on Tomcat) shipped unnoticed since 7.1.0. The showcase can't host an example: JasperReports is LGPL and the showcase WAR is part of the release assembly (the previous example was removed for that reason in 2006).
## What
`JasperReport7TomcatTest` boots Struts on `tomcat-embed-core` (**test scope**, 10.1.55, bound to 127.0.0.1 on a random port), compiles the existing `simple.jrxml` into the webapp's docBase under `target/`, and issues a real HTTP `GET /report.action?format=…` for each of the six bundled formats, asserting status, content type and payload (`%PDF`, `{\rtf`, `PK`, or the rendered text). Runs in ~1 s as part of the module's normal surefire run, under both the default and the `jakartaee11` profile.
With the exporter providers reverted to their pre-WW-5733 state, all six assertions fail with an empty body — the real container symptom the mock could not show.
Test-only change: nothing here reaches the plugin jar or the assembly (`runtime` dependency sets), and the OWASP profile skips test scope.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WW-5734 test(jasperreports7): run the plugin end-to-end on an embedded Tomcat [struts]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #1924:
URL: https://github.com/apache/struts/pull/1924#issuecomment-5645980643
## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1924) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1924&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1924&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1924&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1924&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1924&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1924)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WW-5734 test(jasperreports7): run the plugin end-to-end on an embedded Tomcat [struts]
Posted by "lukaszlenart (via GitHub)" <gi...@apache.org>.
lukaszlenart merged PR #1924:
URL: https://github.com/apache/struts/pull/1924
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org