Automated tests were not committed together with the fix since the patch was outdated. This ticket is a follow up for the security issue to add test coverage. See https://www.drupal.org/sa-core-2020-006
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3096267-8.patch | 7.17 KB | br0ken |
Issue fork drupal-3096267
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
br0ken3096267-2-do-not-commit.patch- visualizes the problem.3096267-2.patch- provides a fix.However, the
Drupal\jsonapi\Entity\EntityValidationTrait::validate()with$field_namesparameter is also called fromDrupal\jsonapi\Controller\FileUpload::handleFileUploadForExistingResource()where the$file_field_name(used instatic::validate($entity, [$file_field_name])) might be not internal name.Comment #3
br0kenBoth methods of
Drupal\jsonapi\Controller\FileUploadare affected too :(Comment #5
gabesulliceComment #7
br0kenComment #8
br0kenComment #14
gregglesComment #15
smustgrave commentedProbably could use an issue summary update. Also should be in an MR.