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

Forums / Unable to import using Replace option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 19.2, 20.0 [Tentative]
    • Fix Version/s: 19.3, 20.0 [Tentative]
    • Component/s: Forums Tool
    • Labels:
      None
    • Environment:
      Sakai nightly 19.2/20
    • 19 status:
      Verified
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      To replicate, create 2 sites on master with the Forums tool.

      In the second site, create an additional Forum besides the default forum thats automatically in the site and leave the forum as a draft.  I also created two topics under that forum and made one draft and one not draft.

      In the first site, create an additional Forum and enter some text in the full description area.  Create 4 topics under that forum, a couple with text in the full description as well.

      Go back to the second site and use Import from Site->Replace->Forums and select the first site to import from.

      The data does not import and an error is printed in the logs. I've attached the stack to the JIRA.

       

      ERROR [pool-5-thread-5] org.sakaiproject.component.app.messageforums.DiscussionForumServiceImpl.transferCopyEntities detached entity passed to persist: org.sakaiproject.component.app.messageforums.dao.hibernate.OpenForumImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.messageforums.dao.hibernate.OpenForumImpl
      org.springframework.dao.InvalidDataAccessApiUsageException: detached entity passed to persist: org.sakaiproject.component.app.messageforums.dao.hibernate.OpenForumImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.messageforums.dao.hibernate.OpenForumImpl
      	at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:187)
      	at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:344)
      	at org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296)
      	at org.sakaiproject.component.common.type.TypeManagerImpl.getType(TypeManagerImpl.java:171) 

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  drramsey Derek Ramsey
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code