Problem/Motivation
Platform CDN purger can't invalidate URLs due to a typing error in the construction of the PURGE request options
Steps to reproduce
Run
drush9 pinv http://www.example.com/
Observe the purge fails and Platform CDN purger no longer works, complaining that credentials aren't set (but they are set).
Proposed resolution
Remove line 121, unset($request_opt['headers']['Fastly-Key']);, of src/AcquiaPlatformCdn/FastlyBackend.php because it is obviously a typing error.
Remaining tasks
None
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_drush9_pinv_url.patch | 595 bytes | mmcconnell |
Comments
Comment #2
mmcconnell commentedComment #3
mmcconnell commentedComment #4
japerry@nielsvm Is there a reason why this was added? Its not clear in the git log, but I'd think other customers would have this same issue and report it.
Comment #5
rubenvarela commentedGot hit by this one. Patch works.
Comment #6
charginghawk commentedChanging this to critical since it completely breaks Fastly support and is such an easy fix.
Comment #8
japerryFixed.
I don't see anything in the git log indicating -why- this was added, it was part of the original commit when Fastly support was added. If others report issues after this patch is added, we can add configuration to disable it on a case-by-case basis.