<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.2.2</td>
</tr>
</tbody>
</table>
<p dir="auto">I am starting a new application and I decide to use Docker for development since it's faster and easy to use. I have build my own stack running Centos 7 with Supervisord, Apache/2.4.6, PHP 7.1.0 and MySQL 5.7.17. The stack is available <a href="https://github.com/reypm/symfony3app/tree/httpd">here</a> and it works as it should be. The instructions to get it up &amp; running are in the README.</p>
<p dir="auto">The problem I am having is coming from the Web Profiler and I am not able to find out why. As soon as I try to access: <code class="notranslate">http://symfonyapp.local/app_dev.php</code> the default page is shown but the next I get is a message saying:</p>
<blockquote>
<p dir="auto">An error occurred while loading the web debug toolbar (404: Not Found)</p>
</blockquote>
<p dir="auto">I have check the logs in the <code class="notranslate">httpd</code> container and this is what I get from there:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="httpd_1    | 172.18.0.1 - - [17/Jan/2017:00:13:43 +0000] &quot;GET /app_dev.php HTTP/1.1&quot; 200 31820 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36&quot;
httpd_1    | 2017-01-17 00:13:44,770 DEBG 'httpd' stdout output:
httpd_1    | [Tue Jan 17 00:13:44.770329 2017] [proxy_fcgi:error] [pid 15:tid 140001497048832] [client 172.18.0.1:54532] AH01071: Got error 'Unable to open primary script: redirect:/app.php/28df54 (No such file or directory)\n', referer: http://symfonyapp.local/app_dev.php"><pre class="notranslate"><code class="notranslate">httpd_1    | 172.18.0.1 - - [17/Jan/2017:00:13:43 +0000] "GET /app_dev.php HTTP/1.1" 200 31820 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
httpd_1    | 2017-01-17 00:13:44,770 DEBG 'httpd' stdout output:
httpd_1    | [Tue Jan 17 00:13:44.770329 2017] [proxy_fcgi:error] [pid 15:tid 140001497048832] [client 172.18.0.1:54532] AH01071: Got error 'Unable to open primary script: redirect:/app.php/28df54 (No such file or directory)\n', referer: http://symfonyapp.local/app_dev.php
</code></pre></div>
<p dir="auto">I have checked all this topics and tried all in there:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44269768" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12075" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/12075/hovercard" href="https://github.com/symfony/symfony/issues/12075">#12075</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32426617" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/10806" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10806/hovercard" href="https://github.com/symfony/symfony/issues/10806">#10806</a> (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xabbuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xabbuh">@xabbuh</a> asked for replication steps I tried to leave them here)</li>
<li><a href="http://stackoverflow.com/questions/31367192/symfony-profiler-throws-404" rel="nofollow">http://stackoverflow.com/questions/31367192/symfony-profiler-throws-404</a></li>
<li><a href="http://stackoverflow.com/questions/16236623/symfony-2-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-foun" rel="nofollow">http://stackoverflow.com/questions/16236623/symfony-2-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-foun</a></li>
<li><a href="http://stackoverflow.com/questions/21058750/symfony-2-4-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-fou" rel="nofollow">http://stackoverflow.com/questions/21058750/symfony-2-4-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-fou</a></li>
<li><a href="http://stackoverflow.com/questions/16236623/symfony-2-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-foun" rel="nofollow">http://stackoverflow.com/questions/16236623/symfony-2-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-foun</a></li>
<li><a href="http://stackoverflow.com/questions/41646272/ah01071-got-error-unable-to-open-primary-script-container-permissions-or-sy" rel="nofollow">http://stackoverflow.com/questions/41646272/ah01071-got-error-unable-to-open-primary-script-container-permissions-or-sy</a></li>
<li><a href="http://stackoverflow.com/questions/21058750/symfony-2-4-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-fou" rel="nofollow">http://stackoverflow.com/questions/21058750/symfony-2-4-an-error-occurred-while-loading-the-web-debug-toolbar-404-not-fou</a></li>
<li><a href="http://stackoverflow.com/questions/12424864/symfony-2-404-not-found-error-when-tryes-to-open-app-dev-php" rel="nofollow">http://stackoverflow.com/questions/12424864/symfony-2-404-not-found-error-when-tryes-to-open-app-dev-php</a></li>
<li><a href="http://stackoverflow.com/questions/31342255/why-is-the-symfony2-profiler-throwing-404s-when-using-the-memcachedprofilerstora" rel="nofollow">http://stackoverflow.com/questions/31342255/why-is-the-symfony2-profiler-throwing-404s-when-using-the-memcachedprofilerstora</a></li>
<li><a href="http://stackoverflow.com/questions/29345720/404-errors-on-acces-to-wdt-token" rel="nofollow">http://stackoverflow.com/questions/29345720/404-errors-on-acces-to-wdt-token</a></li>
<li><a href="http://stackoverflow.com/questions/32923216/404-on-wdt-symfony-webprofiler-doesnt-generate-any-profile-data" rel="nofollow">http://stackoverflow.com/questions/32923216/404-on-wdt-symfony-webprofiler-doesnt-generate-any-profile-data</a></li>
</ul>
<p dir="auto">Can I get some advice on this? Is this a Symfony3 issue, a permission issue, anything else?</p>
<p dir="auto">I have an active topic open in SO <a href="http://stackoverflow.com/questions/41646272/ah01071-got-error-unable-to-open-primary-script-container-permissions-or-sy" rel="nofollow">here</a> as well and so far I couldn't fix the issue.</p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: 3.4.24 / 4.2.5</p>
<p dir="auto"><strong>Description</strong><br>
TransformationFailedException thrown when JSON is submitted through HiddenType field. I have one form that is passing a JSON which is a canvas map of a captured signature.</p>
<p dir="auto">This commit creates the breaking change for us:</p>
<p dir="auto"><a class="commit-link" href="https://github.com/symfony/form/commit/4f7d286bf5b237796cd646ffcd1c4461a145ed02#diff-9c65c1fe9e9fce8398f48544b0bbf2a5">symfony/form@<tt>4f7d286</tt>#diff-9c65c1fe9e9fce8398f48544b0bbf2a5</a></p>
<p dir="auto">Specifically this block of code:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="} elseif (\is_array($submittedData) &amp;&amp; !$this-&gt;config-&gt;getCompound() &amp;&amp; !$this-&gt;config-&gt;hasOption('multiple')) {
    $submittedData = null;
    $this-&gt;transformationFailure = new TransformationFailedException('Submitted data was expected to be text or number, array given.');
}"><pre class="notranslate">} <span class="pl-k">elseif</span> (<span class="pl-en">\is_array</span>(<span class="pl-s1"><span class="pl-c1">$</span>submittedData</span>) &amp;&amp; !<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">config</span>-&gt;<span class="pl-en">getCompound</span>() &amp;&amp; !<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">config</span>-&gt;<span class="pl-en">hasOption</span>(<span class="pl-s">'multiple'</span>)) {
    <span class="pl-s1"><span class="pl-c1">$</span>submittedData</span> = <span class="pl-c1">null</span>;
    <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">transformationFailure</span> = <span class="pl-k">new</span> <span class="pl-v">TransformationFailedException</span>(<span class="pl-s">'Submitted data was expected to be text or number, array given.'</span>);
}</pre></div>
<p dir="auto">This runs before a transformer can clean the data and a mapper does not seem to be a good fit for this.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
Submit JSON through a HiddenType form field</p>
<p dir="auto"><strong>Possible Solution</strong><br>
Check for an additional form option scalar = false or something along those lines.</p>
<p dir="auto">Example JSON:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[  
   {  
      &quot;lx&quot;:132,
      &quot;ly&quot;:67,
      &quot;mx&quot;:132,
      &quot;my&quot;:66
   },
   {  
      &quot;lx&quot;:118,
      &quot;ly&quot;:27,
      &quot;mx&quot;:118,
      &quot;my&quot;:26
   },
   {  
      &quot;lx&quot;:144,
      &quot;ly&quot;:19,
      &quot;mx&quot;:144,
      &quot;my&quot;:18
   }
]"><pre class="notranslate">[  
   {  
      <span class="pl-ent">"lx"</span>:<span class="pl-c1">132</span>,
      <span class="pl-ent">"ly"</span>:<span class="pl-c1">67</span>,
      <span class="pl-ent">"mx"</span>:<span class="pl-c1">132</span>,
      <span class="pl-ent">"my"</span>:<span class="pl-c1">66</span>
   },
   {  
      <span class="pl-ent">"lx"</span>:<span class="pl-c1">118</span>,
      <span class="pl-ent">"ly"</span>:<span class="pl-c1">27</span>,
      <span class="pl-ent">"mx"</span>:<span class="pl-c1">118</span>,
      <span class="pl-ent">"my"</span>:<span class="pl-c1">26</span>
   },
   {  
      <span class="pl-ent">"lx"</span>:<span class="pl-c1">144</span>,
      <span class="pl-ent">"ly"</span>:<span class="pl-c1">19</span>,
      <span class="pl-ent">"mx"</span>:<span class="pl-c1">144</span>,
      <span class="pl-ent">"my"</span>:<span class="pl-c1">18</span>
   }
]</pre></div>
<p dir="auto">This can get quite large depending on the size of the complexity of the signature. Transformers and mappers seem to run after this exception is thrown.</p>
<p dir="auto">Thoughts?</p>