chg: [internal] Invalid message for UUID contains that UUID must be RFC 4122 compliant

pull/6322/head
Jakub Onderka 2020-09-18 10:55:52 +02:00
parent a247bd3500
commit 935437d1bc
10 changed files with 13 additions and 13 deletions

View File

@ -548,7 +548,7 @@ class Attribute extends AppModel
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
'unique' => array( 'unique' => array(
'rule' => 'isUnique', 'rule' => 'isUnique',

View File

@ -14,8 +14,8 @@ class Dashboard extends AppModel
'role_id' => 'numeric', 'role_id' => 'numeric',
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => array('uuid'), 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
) )
); );

View File

@ -291,7 +291,7 @@ class Event extends AppModel
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
), ),
'extends_uuid' => array( 'extends_uuid' => array(

View File

@ -25,8 +25,8 @@ class EventBlocklist extends AppModel
'message' => 'Event already blocklisted.' 'message' => 'Event already blocklisted.'
), ),
'uuid' => array( 'uuid' => array(
'rule' => array('uuid'), 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
) )
); );

View File

@ -60,7 +60,7 @@ class MispObject extends AppModel
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
'unique' => array( 'unique' => array(
'rule' => 'isUnique', 'rule' => 'isUnique',

View File

@ -25,7 +25,7 @@ class OrgBlocklist extends AppModel
), ),
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
) )
); );

View File

@ -35,7 +35,7 @@ class Organisation extends AppModel
), ),
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID', 'message' => 'Please provide a valid RFC 4122 UUID',
'allowEmpty' => true 'allowEmpty' => true
), ),
'valueNotEmpty' => array( 'valueNotEmpty' => array(

View File

@ -129,7 +129,7 @@ class ShadowAttribute extends AppModel
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
), ),
'proposal_to_delete' => array( 'proposal_to_delete' => array(

View File

@ -24,8 +24,8 @@ class SharingGroup extends AppModel
), ),
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => array('uuid'), 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
) )
); );

View File

@ -46,7 +46,7 @@ class TagCollection extends AppModel
'uuid' => array( 'uuid' => array(
'uuid' => array( 'uuid' => array(
'rule' => 'uuid', 'rule' => 'uuid',
'message' => 'Please provide a valid UUID' 'message' => 'Please provide a valid RFC 4122 UUID'
), ),
), ),
); );