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

CLONE -PageEdit.setPosition throws ArrayIndexOutOfBoundsException when position is greater than the number of pages in the site

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.x
    • Fix Version/s: 2.7.x
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      SAK-16820, KNL-250

      Description

      When adding a Page to a Site, if you call PageEdit.setPosition(int position) where position is greater than the number of pages in a site, an ArrayIndexOutOfBoundsException is thrown.

      This should be handled more gracefully and just default to the number of pages in the site +1 so that you can give a high enough number so that the new page will always be placed at the bottom (ie 99).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dhorwitz David Horwitz
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code