-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
CRM-18799 - remove use of exec in WordPress bootstrap #108
Conversation
MegaphoneJon
commented
Dec 21, 2016
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-18799: different server requirements between 4.7.x and 4.6.x
Tested on WordPress 4.7.2 and current civicrm-master. Patch works as expected. I was able to reproduce error in CRM-18799 by disabling 'exec'. I then applied the patch and upload and browsing of files in CK editor worked. |
Thanks for testing @kcristiano ! Random thoughts @PalanteJon @kcristiano :
|
@totten good points. I will test on a host with symlinks that have driven me crazy in the past. As far as patching 'cv' I do think that is a good idea. Realistically any host that allows cli access will probably have exec privileges. your compromise sounds good to me. |
@totten took a stab at this over here: kcristiano/cv@0838d41 full source https://github.com/kcristiano/cv/blob/master/src/Bootstrap.php I have made the corresponding change on wp-master (buildkit) and have no issues so far. Once I have some feedback, I can push this out to a site where I can trigger external scripts (mailing urls, paypal ipn etc) for further testing. |
@kcristiano what do you think the status is here. It's a wordpress only patch so I will defer to your expertise on whether to merge this |
@eileenmcnaughton My only concern is the related patch at kcristiano/cv@0838d41 I've tested @PalanteJon 's patch on a number of WP environments and it is an improvement I would like to see. I have not had time to test when a |
@eileenmcnaughton I've (finally) gotten back to this. I have tested with extern calls as well:
I'll take a look at why this has happened @totten feedback would be appreciated on the relevent changes to cv |
Quick note here - internally unless -P is specified or the POSIXLY_CORRECT environment variable is set, the GNU coreutils pwd program will effectively returns getenv("PWD") and a newline unless something is seriously warped with it. |
Thanks @agileware I did test without CRIPT_FILENAME and the url was just |
@kcristiano are you sure that's related? I can't see where the mail URL generation would depend on this code. |
@agileware It's the handling of the |
@agileware @PalanteJon Tested against current master 4.7.20
Patch works as it should, unsure why I had earlier failure. reproduced this in a second server and achieved the same results - success. @totten OK to merge. |
Merging based on @kcristiano go ahead |