Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 1.2.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Random filename generation is not sufficiently unique when working with multiple developers on a single development server.
$file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml';
Attached patch replaces rand() call with a uniqid() call.
Activity
Tristan Rivoallan
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Random filename generation is not sufficiently unique when working with multiple developers on a single development server. {code:php} $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml'; {/code} Attached patch replaces rand() call with a uniqid() call. |
Random filename generation is not sufficiently unique when working with multiple developers on a single development server. {code} $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml'; {/code} Attached patch replaces rand() call with a uniqid() call. |
Tristan Rivoallan
made changes -
| Description |
Random filename generation is not sufficiently unique when working with multiple developers on a single development server. {code} $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml'; {/code} Attached patch replaces rand() call with a uniqid() call. |
Random filename generation is not sufficiently unique when working with multiple developers on a single development server. {code} $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(11111, 99999).'.yml'; {code} Attached patch replaces rand() call with a uniqid() call. |
Jonathan H. Wage
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Invalid [ 6 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-851, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
This issue is in the Symfony code, not Doctrine. Please open a ticket in http://trac.symfony-project.org