Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3312

Hardcoded IP addresses are not detected in Java classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • MTR-1.0.0
    • 5.2.1.Final
    • None
    • None
    • False
    • None
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---
    • AMM Sprint 218, AMM Sprint 219
    • None

      The DiscoverHardcodedIPAddressRuleProvider.java is supposed to detect IP addresses in several type of files, including Java files (where("type").matches("\\.java|\\.properties|[^pom]
      .xml")
      ).

      If I have an IP address in a properties file, WindUp detects it:

      my.address=10.10.1.0

      But if I have a Java attribute or variable that declares the same IP address, then WindUp does not detect it:

      private String myAddress = "10.10.1.0";
      String myAddress = "10.10.1.0";

      I expect this rule to detect IP addresses also from Java classes

              rhn-support-kpunwatk Karishma Punwatkar
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: