summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfago2018-01-27 07:55:45 (GMT)
committerMateu Aguiló Bosch2018-01-27 07:55:45 (GMT)
commit5aea206677d17d6d2d30bbc8ed41d2341d250787 (patch)
tree68c70719684538edeb72eab6193244da7535947e
parentb2c34dee8b1c763e57a0a203b9007898f386fcab (diff)
Issue #2938625 by fago: Notices of GET blueprint requests cause a broken page cache
-rw-r--r--src/Normalizer/JsonBlueprintDenormalizer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Normalizer/JsonBlueprintDenormalizer.php b/src/Normalizer/JsonBlueprintDenormalizer.php
index 422b9ec..c6330ff 100644
--- a/src/Normalizer/JsonBlueprintDenormalizer.php
+++ b/src/Normalizer/JsonBlueprintDenormalizer.php
@@ -115,9 +115,13 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar
$uuid = new Php();
$raw_item['requestId'] = $uuid->generate();
}
- if (!empty($raw_item['body'])) {
+ if (!isset($raw_item['body'])) {
+ $raw_item['body'] = NULL;
+ }
+ elseif (!empty($raw_item['body'])) {
$raw_item['body'] = Json::decode($raw_item['body']);
}
+
$raw_item['headers'] = !empty($raw_item['headers']) ? $raw_item['headers'] : [];
$raw_item['waitFor'] = !empty($raw_item['waitFor']) ? $raw_item['waitFor'] : ['<ROOT>'];
$raw_item['_resolved'] = FALSE;