Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10458

GetLocaleList call can provide duplicate results

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17.12.01, 16.11.05
    • Component/s: framework
    • Labels:
      None

      Description

      This is not a huge issue but I detected an issue with the GetLocaleList script which when providing both a localeString and localeName can provide duplicate results.

      Here is a set of 3 patches that should be applied in order:

      • the first one is adding some tests with a failing one which identifies the bug
      • the second one resolves the bug
      • the third one refactors the code to use a more functional style

        Attachments

        1. OFBIZ-10458_0001-Add-failing-tests.patch
          3 kB
          Mathieu Lirzin
        2. OFBIZ-10458_0003-Refactor.patch
          2 kB
          Mathieu Lirzin
        3. OFBIZ-10458_0002-Fix-duplicates-bug.patch
          2 kB
          Mathieu Lirzin

          Activity

            People

            • Assignee:
              gil portenseigne Gil Portenseigne
              Reporter:
              mthl Mathieu Lirzin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: