Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40525

Lessons: Join The adjacent regions doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.0
    • Fix Version/s: 19.0
    • Component/s: Lessons, Rubrics
    • Labels:
      None
    • Test Plan:
      Hide
      1. Add a Lessons page
      2. Add a text item
      3. Split the item in two columns with the option "Add Column Break Above"
      4. In the second column, click the option "Join the adjacent two regions into one"
      5. Refresh the tool, the changes were not persisted.
      6. The log displays the mentioned error.
      Show
      Add a Lessons page Add a text item Split the item in two columns with the option "Add Column Break Above" In the second column, click the option "Join the adjacent two regions into one" Refresh the tool, the changes were not persisted. The log displays the mentioned error.

      Description

      The "Join the adjacent regions" feature doesn't work in Lessons, same error message as other issues with the EntityManager since Rubrics was introduced.

      28-Aug-2018 02:41:45.049 ERROR [http-nio-20013-exec-17] org.sakaiproject.util.RequestFilter.doFilter 
      java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.lessonbuildertool.SimplePageItemImpl#4
      	at org.hibernate.jpa.event.internal.core.JpaDeleteEventListener.performDetachedEntityDeletionCheck(JpaDeleteEventListener.java:69)
      	at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:106)
      	at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:73)
      	at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:956)
      	at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:896)
      	at org.springframework.orm.hibernate4.HibernateTemplate$24.doInHibernate(HibernateTemplate.java:794)
      	at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:341)
      	at org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:309)
      	at org.springframework.orm.hibernate4.HibernateTemplate.delete(HibernateTemplate.java:787)
      	at org.springframework.orm.hibernate4.HibernateTemplate.delete(HibernateTemplate.java:782)
      	at org.sakaiproject.lessonbuildertool.model.SimplePageToolDaoImpl.quickDelete(SimplePageToolDaoImpl.java:816)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      	at com.sun.proxy.$Proxy113.quickDelete(Unknown Source)
      	at org.sakaiproject.lessonbuildertool.service.AjaxServer.deleteItem(AjaxServer.java:807)
      	at org.sakaiproject.lessonbuildertool.service.AjaxServer.doGet(AjaxServer.java:928)
      	at org.sakaiproject.lessonbuildertool.service.AjaxServer.doPost(AjaxServer.java:869)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                maintenanceteam Core Team
                Reporter:
                farreri Miguel Pellicer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code