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

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.5.0, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6.0
    • Fix Version/s: 2.5.6
    • Labels:
      None
    • CLE Team Issue:
      Yes

      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

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration