Problem/Motivation
https://www.drupal.org/sa-contrib-2022-050
Steps to reproduce
Proposed resolution
Update the pdf_api from 2.0 to 2.2.2
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3304438-pdf-api-version-9.patch | 328 bytes | bluegeek9 |
| #2 | 3304438.patch | 326 bytes | j.lucky |
Issue fork printable-3304438
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
j.lucky commentedComment #3
nerdsteinThis issue is important. The module is relying on PDF API which had a security release.
I tried to see if this patch would have clean tests on Drupal 9.4.x. It does not (as seen here: https://www.drupal.org/pift-ci-job/2469551)
Some messages suggest the Unit tests are using deprecated functions in Drupal 9:
Other messages suggest an incorrect format:
It would be great to get these tests passing and a new release of the module with PDF API 2.2.0 support.
Comment #4
nerdsteinComment #6
nigelcunningham commentedI still need to work on tests but I have lots of work to do on this module so I'll mark this fixed because the most important aspect is dealt with.
Comment #7
nerdsteinI'm reopening. The patch only brings in pdf_api 2.2.1 after upgrading printable with dependencies.
composer update drupal/printable --with-dependenciesfollowed by
composer show -iresults in
when pdf api needs to be at 2.2.2 to resolve the security concern.
Comment #8
nerdsteinNote: after the upgrade of printable, i was able to manually update pdf_api:
Comment #9
bluegeek9 commentedThe attached patch makes the minimum version of pdf_api to 2.2.2
composer tilde and caret
Comment #10
bluegeek9 commentedComment #13
nigelcunningham commentedThanks! Applied and tagging a 2.1.5 release.