Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4237

Locale is not fetched correctly if array of locales is passed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.20
    • Component/s: Core Interceptors
    • Labels:
      None

      Description

      If there is passed several parameters "request_only_locale", then I18nInterceptor creates and sets locale which is equals Array.toString.

      I18nInterceptor.findLocaleParameter checks for array but also checks that array should be of the length == 1. If it is more than one, then no value is fetched but whole array.

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              egidvais Egidijus Vaisnora
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: