Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-639

The Network Stellar functions need to have better unit testing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.3.1
    • None

    Description

      We have very little unit test coverage around the Networking functions in Stellar at the edge level. When diving a bit deeper on real data, I found a number of bugs around:

      • Domains with TLDs that are not part of the proper set of TLDs
      • URIs with schemes that Java doesn't know about.
      • IN_SUBNET takes multiple CIDRs, but only evaluates the first one.

      Generally calling validate on these methods can be unsafe because they do not handle null arguments correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cestella Casey Stella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: