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

Unable to save a news content anymore

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.4.0
    • 4.4.0
    • None
    • None
    • 4.4 RC1

      How to reproduce

      • Create a news
      • Edit it
      • Try to save (with or without filling date fields)

      The global validator failed with the following error:

      class org.ametys.plugins.repository.data.holder.values.SynchronizableValue cannot be cast to class java.time.ZonedDateTime (org.ametys.plugins.repository.data.holder.values.SynchronizableValue is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6c67e137;
      java.time.ZonedDateTime is in module java.base of loader 'bootstrap'
      java.lang.ClassCastException: class org.ametys.plugins.repository.data.holder.values.SynchronizableValue cannot be cast to class java.time.ZonedDateTime (org.ametys.plugins.repository.data.holder.values.SynchronizableValue is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6c67e137; java.time.ZonedDateTime is in module java.base of loader 'bootstrap')    
          at org.ametys.cms.contenttype.validation.DateTimeIntervalValidator.isLessThan(DateTimeIntervalValidator.java:46)    
          at org.ametys.cms.contenttype.validation.AbstractIntervalValidator._validateInterval(AbstractIntervalValidator.java:129)    
          at org.ametys.cms.contenttype.validation.AbstractIntervalValidator.validate(AbstractIntervalValidator.java:170)    
          at org.ametys.cms.workflow.EditContentFunction.globalValidate(EditContentFunction.java:992)   
          at org.ametys.cms.workflow.EditContentFunction.execute(EditContentFunction.java:252)
       

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: