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

Duplicate site can break if a site has a page with no tools

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.2
    • Fix Version/s: 12.4, 19.0
    • Component/s: Site Info
    • Labels:
      None
    • 12 status:
      Verified
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Duplicate site can break with:

      018-07-25 10:31:30,695  WARN ajp-nio-8009-exec-8 org.sakaiproject.cheftool.VelocityPortletPaneledAction - Exception calling method doDuplicate_site_option java.lang.reflect.InvocationTargetException (Caused by java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0)
      ...
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
              at java.util.Vector.get(Vector.java:751)
              at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.importToolContent(SiteManageServiceImpl.java:165)
              at org.sakaiproject.site.tool.SiteAction.actionForTemplate(SiteAction.java:9703)
      

      if a site that has a page with no tools is duplicated (same may apply to Import from Site).

      This situation should not normally arise, but should be caught anyway.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  smarquard Stephen Marquard
                  Reporter:
                  smarquard Stephen Marquard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code