Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13324

Perforce mail address resolver should fall back to other resolvers if mail address is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • None
    • Perforce 2011.1
      perforce-plugin 1.3.12

      Perforce mail address resolver is always returning a string, no matter what the actual email address is. I don't know what is the order how Jenkins loops through the various MailAddressResolver instances but if some instance returns an actual string (i.e. non-null), it will stick with that. I don't think it's feasible to really check whether the email address provided by Perforce is valid, but PerforceMailResolver could check for some value (e.g. "n/a") and return null if it matches. At least with Perforce 2011.1 you can't have an empty value for an email address.

      There could be an UI element for configuring which email address would be thought as invalid, but I'm fine with hardcoding "n/a" there and documenting it somewhere. Would this be ok?

            Unassigned Unassigned
            miktap Mikko Tapaninen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: