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

Plugin ODF : crash when an ELP is imported both as TU and TUE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 2.9.19
    • Plugins (others)
    • None

      When an ELP is used at the same time as a Teaching Unit and as a Teaching Unit Element, the education import crashe with the corresponding log :

      Caused by: javax.jcr.nodetype.ConstraintViolationException: /odf/odf:teachingUnits/odf:teachingUnit[52]/odf:child/odf:teachingUnitElements:
      is constraint to [odf:teachingUnitElement] but references [primaryType=odf:teachingUnit, mixins=]
      	at org.apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java:632)
      	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1198)
      	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:849)
      	at org.ametys.anycontent.plugins.odf.actions.educations.CreateEducationAction.act(CreateEducationAction.java:203)
      

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: