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

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

    • 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)
      

          [CMS-709] Plugin ODF : crash when an ELP is imported both as TU and TUE

          Raphaël Franchet made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Fix Version/s New: 4.2.0 [ 14425 ]
          Fix Version/s Original: 2.LATER [ 10132 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Priority Original: Critical [ 2 ] New: Major [ 3 ]
          Cédric Damioli made changes -
          Workflow Original: jira [ 11913 ] New: Ametys [ 13287 ]
          Raphaël Franchet made changes -
          Fix Version/s New: 2.Later [ 10132 ]
          Raphaël Franchet made changes -
          Fix Version/s Original: 2.9.21 [ 10131 ]
          Raphaël Franchet made changes -
          Fix Version/s New: 2.9.21 [ 10131 ]
          Julien Couret (Inactive) made changes -
          Project Import New: Thu May 28 17:09:53 UTC 2009 [ 1243530593866 ]
          Nicolas Gavalda (Inactive) created issue -

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

              Created:
              Updated:
              Resolved: