-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(dev/mail/8) Using ACL to restrict mailing recipients leads to fatal error #11963
Conversation
@monishdeb test failures look related |
Strange after fixing the test failures, it passes on local
But fails in Jenkin :/ |
Jenkins test this please |
test this please |
@seamuslee001 remaining fail didn't seem related - are you up with this enough to review. Seems like it needs to be merged to this rc NB @seamuslee001 @totten a case could be made to include it in a 5.0.1 drop. I'm agnostic - I don't think I would argue for a 5.0.1 drop specifically to include this as it was a regression in 4.7.31 rather than 5.0.0 - but since there is now a PR open for a 5.0.0 specific regression (#11975) & if this is very clear cut then I think it could go in a 5.0.1 drop on the grounds it is dealing with a critical error & it is fairly recent (only one more release ago) |
@eileenmcnaughton last time i checked the fail was related directly to Monish's test but we will see what this run does. The change looks right to me but isolated testing as the tests passing but doing something like |
@seamuslee001 earlier my added UT was failing because the contacts created in it was affecting other UTs in that test-case. Now when I added the data cleanup at the end of it, this should pass now. Lets see! |
This is weird, now the test failure reappear again and changed nothing :/ https://test.civicrm.org/job/CiviCRM-Core-PR/20117/ If I trigger the test build then it might show different failure |
Jenkins test this please |
@monishdeb coming up with same incorrect result https://test.civicrm.org/job/CiviCRM-Core-PR/20121/testReport/junit/(root)/CRM_Mailing_BAO_MailingTest/testgetRecipientsUsingACL/ i did some partial debugging on the weekend and was finding that even doing a |
@monishdeb I found it!! Comments in this code turn out to be prescient - switch to Civi::static caching in the function below
|
@seamuslee001 back to you to confirm since I think you have a handle on this (5.1) change |
I was not making any noise until what Jenkins has to say this time 😉 |
:-) |
At least this is a different failure this time https://test.civicrm.org/job/CiviCRM-Core-PR/20220/ |
Jenkins test this please |
Permission changes look fine to me and the change in the mailing is correct IMO |
merging |
Thanks @eileenmcnaughton @seamuslee001 |
Overview
Steps to replicate:
Issue link - https://lab.civicrm.org/dev/mail/issues/8
Before
Result into fatal error - https://pastebin.com/aMa2KYy0
After
Fixed the error.