Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-786

IndexOutOfBoundsException in FormBasedCredentialsProvider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2.4, 2.3.2, 2.4.1, 2.5
    • 2.4, 2.5
    • Plugin core
    • None

      In org.ametys.runtime.plugins.core.authentication.FormBasedCredentialsProvider around the line 143, there is a substring that can lead to a IndexOutOfBoundsException.
      In my case, it happens because request.getRequestURI() returns the empty String "", because the current servlet is in the default (root) context.

      This case must be handled correctly to prevent the AuthenticateAction to fail.

            Unassigned Unassigned
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: