Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-04 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by mryellow):

 lol whatever :-)

 I'm just mirroring the attitude that the dev-team puts out.

 I'm not upset because you won't fix things that I've patched in my own
 core (you wouldn't believe how simple some of the changes are I've
 implemented that are demanded by so many cakephp users, but which were
 rejected by dev-team), I'm upset because you guys close all these valid
 tickets with wontfix and expect problems and inconsistencies to just go
 away.

 I don't really care what you think of me. I have simply attempted to
 participate in a small way, which I have learnt to not do anymore as the
 devs generally have some issue where their egos respond rather then their
 brains.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:18
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-04 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by mryellow):

 Just thought I'd save the guy some time by letting him know that dev-team
 = brick wall.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:20
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-03 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner:  
Type:  Enhancement  |Status:  reopened
Priority:  Low  | Milestone:  1.2.x.x 
   Component:  Validation   |   Version:  RC3 
Severity:  Normal   |Resolution:  
Keywords:   |   Php_version:  n/a 
Cake_version:   |  
+---
Changes (by michaelc):

  * status:  closed = reopened
  * resolution:  wontfix =

Comment:

 @mryellow: I actually do feel that a separate rule just to add a space to
 alphanumeric validation is... difficult to justify - however, if both of
 you would read my alternative proposal, I am suggesting a different manner
 of handling the problem, which fixes incidentally the suggestion by
 mryellow.  I do feel that having an easy alnumspace validation, as
 mryellow suggested, is a good thing, but that due to the frequent need of
 additional character exceptions as well, my proposal is for an easy method
 of passing them to the validation function, much like other fixes.

 I recognize that patches are much preferred in this community, however,
 that as I have encountered this pro...  Honestly, I'm not getting paid to
 sit here and type bug reports either.  Fix it or not, you know my stance
 on the matter if anybody'd read my comments :(.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:13
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-03 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner:  
Type:  Enhancement  |Status:  reopened
Priority:  Low  | Milestone:  1.2.x.x 
   Component:  Validation   |   Version:  RC3 
Severity:  Normal   |Resolution:  
Keywords:   |   Php_version:  n/a 
Cake_version:   |  
+---
Comment (by jperras):

 ''(Note: I have posted a very detailed response in the google-group, which
 is a more appropriate venue for this type of discourse:
 http://groups.google.com/group/cake-
 php/browse_thread/thread/5da14ef82b2c257e )''[[BR]][[BR]]


 There are many ways in which you can implement this feature yourself in
 CakePHP. Here's one approach:

 {{{
 // in either your app_model.php or a model class
 public function alnumWhitelist($data, $whitelist = array()) {
 $data = array_values($data);
 $check = $data[0];
 $whitelist = implode($whitelist);
 $rule =
 /^[\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd}{$whitelist}]+$/mu;

 return preg_match($rule, $check);
 }


 // in your model validation rules
 // Note that some special characters need to be properly escaped.
  public $validate = array(
 'name' = array(
 'rule' = array('alnumWhitelist', array('\s', '\-', \',
 '\')),
 'allowEmpty' = false
 ),
 );

 }}}

 You can place the custom validation rule in a model, or make it available
 on an application-level by putting it in your app_model. If you want to
 get fancy you could also wrap up the validation rule in a behavior, add
 test cases and put the whole lot in a plugin, which would make the whole
 thing portable, re-usable and application independent.[[BR]][[BR]]

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:14
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-03 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Changes (by jperras):

  * status:  reopened = closed
  * resolution:  = wontfix

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:15
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-03 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by mryellow):

 Forget it man. Just do like me and give up on the cake dev team
 write your own patches for anything that doesn't work and never send them
 the code.

 This is a perfect example of how simple logical stuff turns into a litany
 of excuses so as to avoid 5 mins work. Bit late for this one now that
 they're in RC but the confusion with the standard rule was brought up by
 plenty of users when still in beta.

 It doesn't too much effort to see that there is something missing here.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:16
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-03 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by nate):

 @michaelc:Thanks for not following mryellow's example of acting like a
 petulant child, throwing a tantrum when he doesn't get his way.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:17
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-02 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner:  
Type:  Enhancement  |Status:  reopened
Priority:  Low  | Milestone:  1.2.x.x 
   Component:  Validation   |   Version:  RC3 
Severity:  Normal   |Resolution:  
Keywords:   |   Php_version:  n/a 
Cake_version:   |  
+---
Comment (by michaelc):

 Replying to [comment:8 phally]:
  Replying to [comment:7 michaelc]:
   Please change milestone to 1.3.x.x - a more generic and useful
 extension is to allow special characters to be passed to the alphaNumeric
 function as an optional second parameter, such as Sanitize::paranoid
 accepts.  I create my own versions of the same to slap into AppModel until
 the framework supports the common case.
 [[BR]]
  I can't think of many good examples when to use this and why a simple
 regex wouldn't do fine. When you start adding characters to the
 alphanumeric rule, it wouldn't be very alphanumeric right?
 [[BR]]
 Mostly because I wouldn't like typing
 {{{'/^[\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd} ]+$/mu'}}} once for every
 different rule I'll be using, with the exception of a character or two.
 I'm currently using these rules for address and name, as a shorthand for a
 fairly bothersome regex.
 [[BR]]
 Though I admit that we don't always want to lock down a system entirely,
 occasionally CakePHP's email validation regex,
 
{{{'/^[a-z0-9!#$%\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%\'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9][-a-z0-9]*\.)*(?:[a-z0-9][-a-z0-9]{0,62})\.(?:(?:[a-z]{2}\.)?[a-z]{2,4}|museum|travel)$/i'}}},
 can be nice to have.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:9
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-02 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Changes (by jperras):

  * status:  reopened = closed
  * resolution:  = wontfix

Comment:

 An alphanumeric + whitespace rule is almost completely
 useless.[[BR]][[BR]]

 @michaelc: your example of possible use in a 'name' and an 'address' field
 seems fine, until you figure out that Matthew O'hare who lives on 23
 Saint-Joseph rd. can't seem to get past your validation
 criteria.[[BR]][[BR]]

 For the infinitesimally small number of times where a multibyte
 alphanumeric + whitespace validation rule is actually useful, it does not
 merit inclusion into the CakePHP core validation rules.[[BR]][[BR]]

 Good frameworks tend to follow the 80/20 rule, and CakePHP is no
 exception. This 'feature' would definitely be found in the lower end of
 the 20.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:10
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-02 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by michaelc):

 @jperras: Please read the actual suggestion that I made.  Matthew O'hare
 will have no problems with the validation as I have proposed it be
 extended.  Please indicate by your answer to this that you have read my
 original comment.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:11
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5145: Cake should have a alphanumeric+whitespace validation rule

2009-06-02 Thread CakePHP : The Rapid Development Framework for PHP
#5145: Cake should have a alphanumeric+whitespace validation rule
+---
Reporter:  mryellow | Owner: 
Type:  Enhancement  |Status:  closed 
Priority:  Low  | Milestone:  1.2.x.x
   Component:  Validation   |   Version:  RC3
Severity:  Normal   |Resolution:  wontfix
Keywords:   |   Php_version:  n/a
Cake_version:   |  
+---
Comment (by mryellow):

 An alphanumeric + whitespace rule is almost completely useless.

 Because no one ever wants to validate that someone has entered
 alphanumeric text only but with a space. Who would want to validate a such
 a common thing

 mrsyellow isn't the only one that has expected this rule to work for
 whitespace, there are many forum threads around on the subject.

 wontfix the only ticket status you will ever get unless you do all the
 work and post them the completed patch. They just close tickets they don't
 want to spend time on regardless of how useful or problematic a situation
 may be.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5145#comment:12
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---