-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
-
4.2 M9
long maxNbMembers = serviceParameters2018.getValue("nbMembers", false, -1); leads to a ClassCastException
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at org.ametys.plugins.workspaces.members.ProjectMembersGenerator.generate(ProjectMembersGenerator.java:114) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
because the default value is a Integer instead of a Long.
This should be replaced by long maxNbMembers = serviceParameters2018.getValue("nbMembers", false, -1L);