Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19517

AddressSettingsAdd will never merge the default address settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 33.0.0.Final
    • 32.0.0.Final, 32.0.1.Final
    • JMS
    • None

      The WFLY-19072 fix has a mistake in AddressSettingsAdd:

      if(server.getConfiguration().getWildcardConfiguration().equals(context.getCurrentAddressValue())) {
          settings.merge(createDefaulAddressSettings());
      }
      

      That 'if' will never evaluate as true, because a WildcardConfiguration never equals a String.

      I believe the intent was to compare 'server.getConfiguration().getWildcardConfiguration().getAnyWordsString()'.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: