Unverified Commit 5aea2066 authored by fago's avatar fago Committed by Mateu Aguiló Bosch

Issue #2938625 by fago: Notices of GET blueprint requests cause a broken page cache

parent b2c34dee
...@@ -115,9 +115,13 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar ...@@ -115,9 +115,13 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar
$uuid = new Php(); $uuid = new Php();
$raw_item['requestId'] = $uuid->generate(); $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['body'] = Json::decode($raw_item['body']);
} }
$raw_item['headers'] = !empty($raw_item['headers']) ? $raw_item['headers'] : []; $raw_item['headers'] = !empty($raw_item['headers']) ? $raw_item['headers'] : [];
$raw_item['waitFor'] = !empty($raw_item['waitFor']) ? $raw_item['waitFor'] : ['<ROOT>']; $raw_item['waitFor'] = !empty($raw_item['waitFor']) ? $raw_item['waitFor'] : ['<ROOT>'];
$raw_item['_resolved'] = FALSE; $raw_item['_resolved'] = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment