-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
4.2 M11
When configuring a site, the excepted values are string only (untyped)
In workspaces, the project's sites are configure one part from JS form, another part from java.
A boolean parameter (display-restricted-page) is passed to SiteDAO with its typed value (false)
It leads to a ClassCastException
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String at org.ametys.web.repository.site.SiteDAO._setParameters(SiteDAO.java:585) at org.ametys.web.repository.site.SiteDAO.configureSite(SiteDAO.java:505) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager._postProjectCreation(ProjectsCatalogueManager.java:861) at fr.ametys.sgard.plugins.workspaces.project.ProjectsCatalogueManager._postProjectCreation(ProjectsCatalogueManager.java:109) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager._createProject(ProjectsCatalogueManager.java:835) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager.createProject(ProjectsCatalogueManager.java:712) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager.createProject(ProjectsCatalogueManager.java:670)
To fix the issue, this parameter was setted to string "false" in workspaces plugin
The SiteDAO should handle typed value.