lukaszlenart opened a new pull request, #1922: URL: https://github.com/apache/struts/pull/1922
Fixes [WW-5732](https://issues.apache.org/jira/browse/WW-5732) The exporter providers are registered under the lower-case names from `JasperReport7Constants` and the container lookup is exact, so the upper-case `CSV` in the class Javadoc example — and in any config migrated from the 6.x plugin, whose constants are upper-case — failed with `No exporter found for format: CSV`. `JasperReport7Result` now looks the provider up by the configured name first and, when nothing is registered under it, by its lower-cased form (`Locale.ROOT`). `csv`, `Csv` and `CSV` all select the bundled provider, while a custom provider registered under a mixed-case bean name keeps precedence. The `Content-Disposition` filename keeps the configured spelling, as before. Javadoc example switched to `csv` and the `format` bullet notes the case-insensitive match. Test `testFormatLookupIsCaseInsensitive` (`setFormat("CSV")`) failed with the exception above before the change. 🤖 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
