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

Global validators don't manage UntouchedValue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.8.0
    • 4.8.0
    • None
    • None
    • 4.8.0 M7

      Global validators doesn't managed UntouchedValue, it can fails as a ClassCastException, like in LongIntervalValidator for example:

      Caused by: java.lang.ClassCastException: class org.ametys.plugins.repository.data.holder.values.UntouchedValue cannot be cast to class java.lang.Long (org.ametys.plugins.repository.data.holder.values.UntouchedValue is in unnamed module of loader 'app'; java.lang.Long is in module java.base of loader 'bootstrap')
      	at org.ametys.cms.contenttype.validation.LongIntervalValidator.isLessThan(LongIntervalValidator.java:23)
      	at org.ametys.cms.contenttype.validation.AbstractIntervalValidator._validateInterval(AbstractIntervalValidator.java:132)
      	at org.ametys.cms.contenttype.validation.AbstractIntervalValidator.validate(AbstractIntervalValidator.java:173)
      	at org.ametys.cms.workflow.EditContentFunction.globalValidate(EditContentFunction.java:1058)

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: