Comment On Not Valid Enough

Sandy Barnabas received a rather odd message when submitting a registration form: [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Not Valid Enough

2008-02-26 08:08 • by akatherder
At least you can just turn javascript off, because you KNOW they aren't doing any server side verification.

Re: Not Valid Enough

2008-02-26 08:12 • by Someone You Know
If you think Sandy has it rough, imagine Chewbacca's predicament. He doesn't have a last name, so he fails the two-character minimum. Then he think to himself, "Well, maybe I can put in 'Chewbacca of Kashyyyk' instead." Oops...


And what if your last name is Masdford?

Re: Not Valid Enough

2008-02-26 08:14 • by Mark (unregistered)
What the heck?

Some developers confuse me.

What were they thinking?

Re: Not Valid Enough

2008-02-26 08:19 • by Velko (unregistered)
179150 in reply to 179148
At least there's no problem if your last name is Qwerty.

Re: Not Valid Enough

2008-02-26 08:22 • by asdf (unregistered)
Opposite to my case

Re: Not Valid Enough

2008-02-26 08:35 • by Claxon
The real wtf is gravity...

but who are they to say what is a valid first name? If I want to call my child OoooooLaaaaa, that's my choice.

Re: Not Valid Enough

2008-02-26 08:39 • by Troy McClure (unregistered)
These stupid validations are always pet peeves of mine. The worst is the security question validation (yes I know we have talked about them to death).

I got one the other day that asked the number of my street where I grew up. When I responded with 54 it told me it wasnt enough characters - there is a difference between trying to handle bogus data and just making it plain annoying.

Now if this were a password field, I could understand this validation logic a little more.

Re: Not Valid Enough

2008-02-26 08:39 • by Colin (unregistered)
179157 in reply to 179154
If that is your choice then social services should probably choose to take away your child :)

Re: Not Valid Enough

2008-02-26 08:47 • by s. (unregistered)
Your Last Name Is Too Short(*)
(*)Last Name has to be at least 4 characters long.

Re: Not Valid Enough

2008-02-26 08:59 • by GettinSadda
Apparently Cookson is also invalid

Re: Not Valid Enough

2008-02-26 09:00 • by Rick
I recently had to enter a password of at least 8 alphabetic characters, no numbers allowed. Aaargh.

Re: Re-anonymisation error!

2008-02-26 09:01 • by GettinSadda
"He tried again... Sandy took a quick peek at her passport ..."

Re: Not Valid Enough

2008-02-26 09:04 • by Claxon
I once had a password that specified "The first digit of your password must be a number." - How much do you think that helped security.

Re: Not Valid Enough

2008-02-26 09:08 • by Raedwald
That user asdf? I wouldn't let him use my software either.

Re: Not Valid Enough

2008-02-26 09:08 • by nickfitz
Ugh... it's a long time since I've seen JavaScript written as unutterably badly as that.

Apparently they didn't get the memo that "eval() is evil"...

Re: Re-anonymisation error!

2008-02-26 09:09 • by Cookson (unregistered)
179166 in reply to 179162
GettinSadda:
"He tried again... Sandy took a quick peek at her passport ..."


anonymization.. ur doin it wrong.

Regular expressions

2008-02-26 09:10 • by Steve (unregistered)
I'm not saying the three-or-more letter restriction is legitimate, but if anyone ever needs it, here it is:

!firstname.match(/(.)\1{2,}/);


I wish I could get paid for removing useless code. I'd be rich.

Re: Not Valid Enough

2008-02-26 09:10 • by Ola (unregistered)
Sandy should choose a valid gender.

asdf

2008-02-26 09:12 • by Raedwald
I am enlightened: asdf

Re: asdf

2008-02-26 09:19 • by Zecc
179172 in reply to 179169
My favorite part is:

Reject first or last names that contain more than two consecutive entries of the same character, e.g. ooo, lll, eee, etc.

Re: Not Valid Enough

2008-02-26 09:20 • by Michael (unregistered)
179173 in reply to 179154
Claxon:
The real wtf is gravity...

but who are they to say what is a valid first name? If I want to call my child OoooooLaaaaa, that's my choice.

Still not as good as little Bobby Tables.
http://xkcd.com/327/

Re: Not Valid Enough

2008-02-26 09:25 • by mauhiz (unregistered)
Actually on azerty keyboards (like french ones) asdf becomes qsdf. So my usual dummy name is not checked by this awesome script!

Side note : My browser had auto-completion for captcha field. Can it read? So smart...

Re: Not Valid Enough

2008-02-26 09:28 • by Vollhorst (unregistered)
1. Sandy is also a male name.
2. I bet they tried to block all names which had the same letter thrice consecutively but never tested their software.

Reminds me off some server side stuff I have seen:
if (form.title.equals("Mister")) customer.setIsMale(true);

Worked "fine". Until internationalization came and the database was full of female foreigners...

Re: asdf

2008-02-26 09:29 • by paratus (unregistered)
179176 in reply to 179172
Zecc:
My favorite part is:

Reject first or last names that contain more than two consecutive entries of the same character, e.g. ooo, lll, eee, etc.

Well, it says "more than two" which is equivalent to "three or more"

Re: Not Valid Enough

2008-02-26 09:29 • by snoofle
179177 in reply to 179168
Ola:
Sandy should choose a valid gender.

Done:

enum Gender {
MALE,
FEMALE,
GENDER_NOT_FOUND
};

Re: Not Valid Enough

2008-02-26 09:30 • by AT (unregistered)
If you want to see a stupid Javascript validation/restriction check out this site: http://www.ci.org (Compassion International)

If you right click anywhere on the site (not just images) a pop-up appears reading:

"Compassion has disabled the right click feature on photographs of children on our site. The additional effort has been implemented to protect the security, dignity and privacy of children in our program."

That's right, this site completely disables your context menu in the bizarre belief they can prevent you from "stealing" their photos.

I guess Compassion believes only they should be able to "exploit" children by posting their photos on the Web?

Re: Re-anonymisation error!

2008-02-26 09:33 • by Rob (unregistered)
179179 in reply to 179162
GettinSadda:
"He tried again... Sandy took a quick peek at her passport ..."

don't you mean her pbuttport?

Re: Not Valid Enough

2008-02-26 09:36 • by brazzy
179180 in reply to 179178
AT:
If you want to see a stupid Javascript validation/restriction check out this site: http://www.ci.org (Compassion International)

If you right click anywhere on the site (not just images) a pop-up appears reading:

"Compassion has disabled the right click feature on photographs of children on our site. The additional effort has been implemented to protect the security, dignity and privacy of children in our program."

That's right, this site completely disables your context menu in the bizarre belief they can prevent you from "stealing" their photos.

Lots and lots of sites try that stupid stunt, though most of them don't give such a nice pseudo-moral explanation.

Re: Not Valid Enough

2008-02-26 09:38 • by clively
When will people realize that receiving "invalid" data isn't as bad as losing a potential customer?

Invalid data can be detected and cleaned up later. Getting a customer back is nearly impossible.

Re: Re-anonymisation error!

2008-02-26 09:40 • by Troy McClure (unregistered)
179182 in reply to 179179
Rob:
GettinSadda:
"He tried again... Sandy took a quick peek at her passport ..."

don't you mean her pbuttport?


Well done sir. You win this round.

Re: Not Valid Enough

2008-02-26 09:43 • by lgrave
Alex, are you aware that your fisrt version is the one that is sent in RSS?...

Re: Not Valid Enough

2008-02-26 09:48 • by GalacticCowboy
179185 in reply to 179175
Vollhorst:
1. Sandy is also a male name.


True. However, "Sandy" in this story seems a bit gender-confused.

Re: Not Valid Enough

2008-02-26 10:12 • by Redeemer (unregistered)
179190 in reply to 179165
What happens if my first name is "return true" ?



or "return true;" not really sure which is the correct one
and the second name contains what

Re: Not Valid Enough

2008-02-26 10:14 • by dextron
This story would have been much better if the protagonist were named Pat.

Re: Not Valid Enough

2008-02-26 10:15 • by shadowman
It's a little odd that he'd single out only asdf as invalid. Perhaps he was coming back later to add hjkl, fdsa, qwerty, etc? Or did he really think this would happen every time:

lastname: a ("wow, ok must be too short.)
lastname: asdf ("nope. hmmm"
lastname: aaaaaa ("aww shucks. Well I guess I had better type a real name now")

Re: Not Valid Enough

2008-02-26 10:22 • by wing commander (unregistered)
I once dealt with a (Spanish) website that would not sell to anyone without a middle name. If you didn't have one you had to invent one.

Re: Not Valid Enough

2008-02-26 10:26 • by Kiss me I'm Polish
It explains also why my last name is so often misspelt.

Re: Not Valid Enough

2008-02-26 10:35 • by Alex (unregistered)
179206 in reply to 179178
That's right, this site completely disables your context menu in the bizarre belief they can prevent you from "stealing" their photos.

What is most frustrating about such sites is if you are like me and tend to use the context menu back item to navigate.

I want to go back, so right click to do so and instead a @%$@#$@# popup appears accusing me of trying to steal photos, it rapidly makes me turn off javascript, disable context menu manipulation or just not visit that site.

captcha: transverbero

Re: Not Valid Enough

2008-02-26 10:37 • by Spoe (unregistered)
And if your last name is O (an actual surname in France)?

Re: Not Valid Enough

2008-02-26 10:42 • by WhiskeyJack
179211 in reply to 179206
Alex:
I want to go back, so right click to do so and instead a @%$@#$@# popup appears accusing me of trying to steal photos, it rapidly makes me turn off javascript, disable context menu manipulation or just not visit that site.


Then while you're at it, download all of the pictures of their children that they're supposedly trying to "protect", and email them back to their webmaster. For bonus points, include a ransom note.

Re: Not Valid Enough

2008-02-26 10:44 • by FredSaw
Does Sandy go by the pseudonym Mystique?

Re: Not Valid Enough

2008-02-26 10:45 • by David (unregistered)
The funny thing about all those context menu disabling scripts is that they don't work in Firefox; it displays the context menu anyway, giving it focus, with a silly alert box saying you can't use the context menu. Usually sites do this to try to keep you from taking their pictures, so I make it a point to download something out of spite.

Re: Not Valid Enough

2008-02-26 10:54 • by FredSaw
179219 in reply to 179177
snoofle:
Ola:
Sandy should choose a valid gender.

Done:

enum Gender {
MALE,
FEMALE,
GENDER_NOT_FOUND
};
Nah, it's still incomplete. Here:
enum Gender {
MALE,
FEMALE,
NONE,
SHEMALE,
OTHER,
GENDER_NOT_FOUND
};

Re: Not Valid Enough

2008-02-26 10:58 • by Dazed (unregistered)
179220 in reply to 179178
AT:

If you right click anywhere on the site (not just images) a pop-up appears reading: ...


Only in some browsers. (Only in one browser, I suspect). Hence or otherwise deduce ...

Re: Not Valid Enough

2008-02-26 11:00 • by Jindra (unregistered)
179221 in reply to 179197
I had to deal with almost every website once I lived in Ireland, where there are no ZIP codes (only Dublin has 1-9 as ZIP code)

Re: Not Valid Enough

2008-02-26 11:02 • by Rich Wilson (unregistered)
179223 in reply to 179178
I ran accross that one, and seem to recall that the 'entire site' part was browser specific. It works in IE and Opera- it only disables for the entire page in Firefox and Safari.

They actually responded when I complained, so I offered to fix it, and they never replied. That was at least three years ago.

http://naartjie.homestead.com/ disables right click entirely for all browsers. Good time for noscript!

Re: Not Valid Enough

2008-02-26 11:05 • by Phil (unregistered)
179225 in reply to 179215
David:
The funny thing about all those context menu disabling scripts is that they don't work in Firefox; it displays the context menu anyway, giving it focus, with a silly alert box saying you can't use the context menu. Usually sites do this to try to keep you from taking their pictures, so I make it a point to download something out of spite.


but make sure to hide it once you've downloaded it, don't want them downloading it back again.

Re: Not Valid Enough

2008-02-26 11:06 • by Kederaji
So I guess if my name actually is John Jacob Jingleheimer-Smith, I'm completely out of luck?

Re: Re-anonymisation error!

2008-02-26 11:27 • by Hungarian Notation (unregistered)
179234 in reply to 179179
Rob:
GettinSadda:
"He tried again... Sandy took a quick peek at her passport ..."

don't you mean her pbuttport?


She doesn't really like pointers to ports in ... well, never mind.

Re: Not Valid Enough

2008-02-26 11:40 • by Dave (unregistered)
179237 in reply to 179225
David:
The funny thing about all those context menu disabling scripts is that they don't work in Firefox; it displays the context menu anyway, giving it focus, with a silly alert box saying you can't use the context menu. Usually sites do this to try to keep you from taking their pictures, so I make it a point to download something out of spite.


Opera handles matters rather more elgantly, by completely disregarding their little right-click scripting adventures.
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment