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

Type conversion for map with lists calls several taim set

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.5.x
    • Component/s: None
    • Labels:
      None

      Description

      I have setter in struts action:

      setChangedPermissions(Map<String, String[]> changedPermissions) {
      ...
      }
      

      Passed properties are similar

      changedPermissions.SITE=300:1
      changedPermissions.SITE=100:0
      changedPermissions.LANGUAGE=en:1
      changedPermissions.LANGUAGE=ru:1
      

      Expecting to get filled Map following

      (KEY-> {value1, value2}):
          SITE->(300:1,100:0) 
          LANGUAGE->(en:1,ru:1) 
      

      Method 'setChangedPermissions' is called several time. Each call passes separate map and later fills with single 'key' value.

      I expect that 'setChangedPermissions' should be called single time and map filled with all values at once.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vaisegid Egidijus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: