Uploaded image for project: 'Atlassian Connect'
  1. Atlassian Connect
  2. AC-1113

ACE whitelist checking doesn't match hosts with multiple parts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Libraries – ACE
    • Labels:
      None
    • Sprint:
      1.0.3

      Description

      The whitelist regular expression for to check valid hosts does not match host names with more than one '.'

      addon.config.whitelistRegexp()0 = /^[^.]\.[^.]$/
      addon.config.whitelistRegexp()0.test("test.com") = true
      addon.config.whitelistRegexp()0.test("test.test.com") = false

      I would have expected this whitelist pattern to match all hosts including those with multiple '.'s.

        Attachments

          Activity

            People

            • Assignee:
              pstreule Patrick Streule
              Reporter:
              mjensen Matthew Jensen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?