Bug 65959 - Tomcat 9.0.59 and 9.0.60 implementation of FunctionMapperImpl breaks application
Summary: Tomcat 9.0.59 and 9.0.60 implementation of FunctionMapperImpl breaks application
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: EL (show other bugs)
Version: 9.0.60
Hardware: All Linux
: P2 regression (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2022-03-16 15:24 UTC by François Dambrine
Modified: 2022-03-22 12:50 UTC (History)
0 users

full stack trace (10.00 KB, text/plain)
2022-03-16 15:24 UTC, François Dambrine

Note You need to log in before you can comment on or make changes to this bug.
Description François Dambrine 2022-03-16 15:24:49 UTC
Created attachment 38229 [details]
full stack trace

We have a JSF application that is properly running on tomcat 9.0.58 and previous.
We use Primefaces as JSF component provider.

When we use a dynamic view with ajax, we obtain a full stacktrace du to Serialization error of FunctionMapperImpl (see attached).

I analyzed your release notes and commits and found that the full "write" section was modified for the FunctionMapperImpl.

I cloned tomcat repository, opened the 9.0.x branch and reverted the code https://github.com/apache/tomcat/commit/89c63c4757854435f8d6525e08c02fc598f4aae7 then redeployed the libraries and everything ran fine.
Comment 1 Remy Maucherat 2022-03-22 12:50:16 UTC
The written type was changed from String[] to Class[] when writing the original object, so there was a problem. The fix will be in 10.1.0-M13, 10.0.19, 9.0.61 and 8.5.78.