Closed
Description
When the header X-Magento-Tags contains whitespaces, an Zend\Http\Header\Exception\InvalidArgumentException
is being thrown when the full page cache is enabled. Block IDs can contain whitespaces due to reformatting in layout XML files, because of the 80 character line length limit.
Preconditions
Using Magento 2.1.2 with nginx and PHP7
Steps to reproduce
- Have layout files with
block_id
arguments that contain whitespaces (see image below) - Enable full page cache
- Reload a page
Expected result
The page should be loaded correctly
Actual result
An error Zend\Http\Header\Exception\InvalidArgumentException: Invalid header value detected
is being thrown.
Possible fix
Filter out whitespaces within argument
tags when reading XML layout files.
Attachment
Metadata
Metadata
Assignees
Labels
Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release