Closed (fixed)
Project:
Provision
Version:
5.x-0.1-alpha1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2008 at 19:20 UTC
Updated:
12 Jan 2009 at 15:30 UTC
Bug #248454 outlined how brittle the inter-process communication (IPC) is between the provision and hosting module. In that bug, an SQL error is being thrown to stdout which garbles the (normally) serialized output of the provision module.
We need to avoid doing that to facilitate debugging and propagate errors properly from the provision module all the way up to the user.
Note that this happens only if there is another bug present in the provisionning module.
Comments
Comment #1
adrian commentedPerhaps we should use :
http://www.php.net/manual/en/function.proc-open.php
Pipes might be a better mechanism than the serialization thing.
Comment #2
adrian commentedswitched to proc open, and use stronger protection on serialized output.