-
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
[JENKINS-64854] emails in CC aren't encoded
Attachment | New: Capture d’écran 2021-03-01 à 13.55.16.png [ 54076 ] |
Labels | New: newbie-friendly |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Released As | New: cloudbees-jenkins-advisor 3.2.4 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
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