#5987: UUID - string.php - Always end with 0 when testing on localhost AND
security.salt is empty
-----------------------------------+----------------------------------------
    Reporter:  iGloo               |          Type:  Bug    
      Status:  new                 |      Priority:  Medium 
   Milestone:  1.2.x.x             |     Component:  General
     Version:  1.2 Final           |      Severity:  Normal 
    Keywords:  uuid security salt  |   Php_version:  PHP 5  
Cake_version:                      |  
-----------------------------------+----------------------------------------
 Hi folks,

 When using UUIDs as id for models, if used on localhost and security.salt
 is empty, all generated uuid will end with a set of 0's.

 As RFC states that the last portion of the UUID is related to the node
 identifier, we should probably come up with a solution when the host is
 set to localhost and salt is empty. :/

 00101         if (empty($node)) {
 00102             $node = crc32(Configure::read('Security.salt'));
 00103         }

 Examples of generated models:
 496cb26a-abf8-4a40-bad3-216100000000
 496cb2bb-f4e4-49d3-a83f-216600000000
 496cad9d-9018-4b9f-ba7f-164200000000

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5987>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to