Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9588

SiteDAO does not handle typed value during site's configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      4.2 M11

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              laurence Laurence Aumeunier
              Reporter:
              laurence Laurence Aumeunier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: