-
Bug
-
Resolution: Fixed
-
Major
-
-
cloudbees-jenkins-advisor 3.2.4
Emails defined in CC aren't encoded when sent to the server. It means that characters like + for aliases are wrongly interpreted as space
The url is built here : https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/advisor/client/AdvisorClient.java#L75-L78
And it’s manually handling the encoding here: https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/blob/30d1df36b4f9de4ef6308b6873a6d0eaa1aa97ad/src/main/java/com/cloudbees/jenkins/plugins/advisor/utils/EmailUtil.java#L19-L24
only the CC parameter is “encoded” and this encoding function is just taking care to replace comas to separate emails
Use case where it fails: when using an email with a character `+` as the Gmail built-in aliases.
In my case, I have my personal email "foo@gmail.com" and I wanted to use the alias "foo+jenkins@gmail.com" as Cc.
WARNING c.c.j.p.a.AdvisorGlobalConfiguration#lambda$isValid$3: cc "foo+jenkins@gmail.com" is not valid