2.2k
u/Lejyoner07 Sep 05 '24 edited Sep 05 '24
Wait, people think we check random form data?
You won't see me checking nothing unless it causes a dumpster fire somewhere. Bring prod down and council will hear your word 🗿.
95
u/colin_colout Sep 05 '24
BI team will notice it, Data Engineers will check the warehouse and pipelines to see that it's "incorrect" at the source DB.
The Software Engineers will get roped in at this point.
27
u/YorkieCheese Sep 05 '24
Yeah lol. Dunno why people think m companies are dysfunctional enough to banish users’ submitted forms (not complains) into a black hole never to be read
→ More replies (1)5
16
u/DoctorWaluigiTime Sep 05 '24 edited Sep 06 '24
That or a pattern.
If one random form submission out of dozens, hundreds, or thousands has a cheeky "teehee this is gonna drive them mad" character at the end, who cares.
If 90+% of them have it, then yeah it's likely a code issue.
30
7
6
18
u/Tuckertcs Sep 05 '24
Clearly you’ve never worked in government software. We’ve had our senior dev manually edit fields in the database to fix issues users were having.
31
Sep 05 '24
That's not the same as checking random datasets. And that's a normal thing to do to resolve bugs.
→ More replies (1)8
u/plippyploopp Sep 05 '24
Yea? Better than 20hrs to fix an edge case
7
u/Tuckertcs Sep 05 '24
As opposed to having any sort of validation to clean incoming data?
→ More replies (7)→ More replies (13)3
u/DiaDeLosMuebles Sep 05 '24
Yep.
Product will be like “some weird characters are showing up.”
Every dev ever: user probably did something stupid.
→ More replies (1)
2.0k
u/chin_waghing Sep 05 '24
[object Object] is my personal favourite
217
u/Luccacalu Sep 05 '24
I hate this I hate this I hate this
Everytime I see [object Object] on my log I lose a day of life
34
u/Unknown6656 Sep 06 '24
On one hand I pity you.
On the other hand, you deserve that when using weakly-typed programming languages.
7
u/CatProgrammer Sep 06 '24
The real issue is not having a good default string representation for objects. Or not erroring out when it does not exist so you at least get a stack trace.
30
→ More replies (3)97
u/No-Bit7559 Sep 05 '24
[Object object] 🤓👆
→ More replies (1)263
u/antonw51 Sep 05 '24 edited Sep 05 '24
JavaScript objects turned to strings using
.toString()are'[object Object]', not'[Object object]'
Edit:On second thought,is that supposed to be a joke? I'm not sure.→ More replies (5)6
743
u/gydu2202 Sep 05 '24
Don’t worry, it’ll be fine; I’m sure they’ve fixed the issue.
50
→ More replies (1)30
u/OneWholeSoul Sep 05 '24
This reminds me that Twitch can't handle apostrophes or ampersands in video titles or descriptions.
EDIT: For instance, "Mirror's Edge" becomes "Mirror's Edge."
→ More replies (3)
378
Sep 05 '24
Same, I always use 1-1-1970 as my birthday. Let me see if you learnt type conversions in javascript.
86
u/well-litdoorstep112 Sep 05 '24
What would it accomplish? 1970-01-01T00:00:00.000Z is just 0. Why would it break something?
Is it something like
if(!myDate.getTime()){//error}? Or is it something else?113
u/twistsouth Sep 05 '24
I think their point was that if an engineer sees it, it stands out like an error. Makes them wonder if it was an empty value passed to a date function. Because we have all done it at some point.
19
u/well-litdoorstep112 Sep 05 '24
Yeah, but what "type conversion in Javascript" has to do with it?
→ More replies (3)41
→ More replies (3)2
91
u/almofin Sep 05 '24
Type "true" into a search box lol. At work this crashed our entire app because it got converted to boolean, the typical string functions wouldn't work
0
640
u/24NAMANJN Sep 05 '24
A back end developer would delegate this front end saying, please don’t allow anything beyond fixed set of characters 😂
275
Sep 05 '24
front end validation FTW! Nobody will know right?
right?
→ More replies (1)104
u/24NAMANJN Sep 05 '24
Yeah.. until the BE has also skipped the validation and somebody hit the API directly. 😜😂
→ More replies (5)30
57
u/pailadin Sep 05 '24
I remember being on a pr�ject once where the frontend validation was: when the user stops typing, send the user input to an API that will return an error if there are problems with it.
24
u/Bali201 Sep 05 '24
Can you say more how this is bad? I’m a noob. Isn’t this what some sites do where they display, say, your password strength as you type so that you can stop adding complexity once you get the “strong password” sign?
21
u/pailadin Sep 05 '24 edited Sep 05 '24
It took about half a second in-between the user no longer typing and the error message to show up because we were waiting for the server to tell us the user's input had a problem.
I just didn't like how that looked.
EDIT: should clarify this was a while ago and we just POSTed to a server. Nowadays, probably with sockets the speed shouldn't be an issue. Though I still don't think we should've bothered the server with a task the user's computer could do on its own.
17
u/gmano Sep 05 '24
If potentially every single keystroke hits your api, that's a LOT of load
→ More replies (1)→ More replies (2)5
→ More replies (4)7
u/almcchesney Sep 05 '24
Tbh I am not mad with this method, the amount of tickets I have received due to misaligned validation on front & backend are just too many.
My team found an edge case in the backend code once validating some input configuration, now we return 400 bad request on a specific config set. Tickets still come in from users that attempt to update their old resources and get our validation messages as the frontend doesn't validate that field if it doesn't change.
→ More replies (1)35
u/turtleship_2006 Sep 05 '24
A good back end developer wouldn't have trusted input from the front end in the first place
12
u/24NAMANJN Sep 05 '24
Yeah, the best way to do is to have validation at both end. But based on this sub, we’re not considering best case scenario.
7
u/ThisIsMyCouchAccount Sep 05 '24
Except when you're the dev doing both.
There's just something demotivating writing FE validation knowing that tomorrow you have to do it all again on the BE.
11
2
u/well-litdoorstep112 Sep 05 '24
And then you can't type your name properly because the backend dev was lazy.
2
u/Inevitable_Stand_199 Sep 05 '24 edited Sep 06 '24
And then you want to use it internationally. And people can't write their names and addresses in your form
2
u/OffByOneErrorz Sep 06 '24
Ya no I don’t trust front end at all lol. Data validation for everything sent to my apis.
175
u/AddisonDeWitt333 Sep 05 '24
Nice idea, but we just block all of that these days - they can't submit
115
Sep 05 '24
azAZ, we dont fuck around
67
42
u/Heribertium Sep 05 '24
Fuck you. My first name contains a dash and I hate sites that make me spell my own name wrong!
9
u/Olhapravocever Sep 05 '24
or without an accent, and then it's different from the legal document and then you get treated like a criminal because it doesn't match
→ More replies (1)14
Sep 05 '24
Some of yall wont make it, but its the sacrifice we are willing to make.
→ More replies (1)→ More replies (6)7
u/gmc98765 Sep 05 '24
The real problem comes when the developer not only insists that users mangle their name to a specific format but also insists that it exactly matches an external source (e.g. the name on a payment card) which doesn't necessarily conform to that format. So any user whose "external" name doesn't match the requirements is basically blocked from using the service.
Note that VISA allows single quote, backtick, tilde, period and hyphen to appear in names. Rejecting names because of the presence of those characters will likely get you in trouble with your payment processor and possibly state authorities. In particular, a refusal to accept business from someone with a single quote in the name on their payment card will disproportionately affect people with Irish nationality and/or ancestry (surnames like "O'Hare" etc), and so will typically violate laws which prohibit discrimination on the basis of nationality or ethnicity.
→ More replies (2)14
→ More replies (1)11
u/turtleship_2006 Sep 05 '24
Me when I edit the html/js and submit it anyways
6
u/DoctorWaluigiTime Sep 05 '24
Frontend validation for user convenience, backend validation for actual security.
7
u/AddisonDeWitt333 Sep 05 '24
Me when cloudflare or barracuda or whatever boots it out again.
I’ll grant you, some rubbish occasionally finds its way in via one of the email forms, and my team goes: Some script kiddies have been at the site again
49
31
62
u/Amazing_Might_9280 Sep 05 '24
Someone that's smarter than me explain this please.
160
u/erishun Sep 05 '24
When you have encoding issues, the characters will often become garbled.
For example, when you have an apostrophe in UTF-8 and it gets decoded as CP-1252, you get the dreaded ’
36
u/gmc98765 Sep 05 '24
When you have encoding issues, the characters will often become garbled.
There's a word for this: Mojibake, taken from Japanese (文字化け) as the issue has historically been so common there.
3
→ More replies (1)23
20
u/timoshi17 Sep 05 '24
thatsaRepost
19
u/Wrectal Sep 05 '24
If we needed any proof dead internet theory has arrived, just gotta look at the replies to this crap.
7
u/itsjbean Sep 05 '24
for real and I've seen this exact post several times before. hell the original tweet is almost a decade old
14
u/orsikbattlehammer Sep 05 '24
I had this fucked up bug that I spent weeks trying to uncover a while ago. The customer had sporadic issues with specific employee erroring out a stored procedure, and for the life of me I could not figure out what the issue was. After a while of fucking around I noticed that if I did a select on one of the offending records, copied the offending column, and did an update pasting the same value back in, it worked fine. This drove me to insanity for the next several days. There wasn’t anything wrong with the string, I kept checking it over and over for special characters but it was totally normal. Finally I came to my senses and did an update select instead of copy pasting and it still failed. That was the day I found out that SSMS strips out certain special characters in its result set, so copy pasting didn’t give me the real data.
→ More replies (3)2
12
u/david30121 Sep 05 '24
22
u/RepostSleuthBot Sep 05 '24
Looks like a repost. I've seen this image 16 times.
First Seen Here on 2023-01-13 95.31% match. Last Seen Here on 2024-04-21 76.56% match
View Search On repostsleuth.com
Scope: Reddit | Target Percent: 75% | Max Age: Unlimited | Searched Images: 609,829,428 | Search Time: 0.24709s
→ More replies (1)7
10
11
u/helmsb Sep 05 '24
I’ve use the Mongolian Vowel Separator (U+180E) occasionally for a terrible piece of software I used to have to use that had all kinds of weird text restrictions and it would allow you to add whitespace or skip fields. I have it set up as a shortcut when I type ;khaaannn.
11
u/shuozhe Sep 05 '24
NaN was enough to confuse a web dev for a while (my surname is Nan, I use it frequently to mark data entry to check)
11
9
8
6
u/meme_and_learn Sep 05 '24
You assumed that I look at how my code is performing after I launch it. Jokes on you!!
4
u/myrsnipe Sep 05 '24
Lmao I had to redo some imports yesterday because somewhere in the chain there was an excel sheet when exported as csv used windows style encoding instead of utf8
2
u/horreum_construere Sep 05 '24
That's the worst. I had the same thing lately, where I was using libreoffice csv with utf8 and management used excel csv export with this shitty windows style encoding. Took me a while to reproduce and fix it.
4
u/larsjarred9 Sep 05 '24
This man is the reason I do regex validation 😆😂
3
u/DerBronco Sep 05 '24
We all do.
… except for that one form in this irrelevant form hidden away in some imprint that nobody ever visits. Right?
4
4
3
3
u/CaffeinatedTech Sep 06 '24
If you're lucky, it will get printed on an envelope and the post office sorting machine also has to decipher it.
3
u/slucker23 Sep 06 '24
I recall one of my classmate back in the days would suggest adding the Greek comma as semicolon. So instead of ; you have ;
Yep, it's exactly the same. PC will call error but you would have zero idea why and how
3
2
2
2
2
2
u/xxwerdxx Sep 05 '24
LPT: have an apostrophe in your name. Every single online form will say it's not valid lol
2
u/srfreak Sep 05 '24
If I need to input a date, I like to set it as 1970-01-01 and see the world in flames.
2
u/beardedchimp Nov 28 '24
I have done this for maybe 15 years now, didn't know there was another. It isn't because it will break anything and cause flames. It is from years of experience with databases knowing that any time I see 1970-01-01 I immediately assume it must be spurious and due to a bug. I'll then try to track down how a null,0 or NaN has passed initial validation and parsed into the exact second our universe was created.
I know it sounds cruel, but I'd find it absolutely hilarious if anyone ever did this to me. For a very, very long time I have held the view that nobody was born on that date and despite handling massive databases I've never come across any legitimate cases, or perhaps I just deleted them out of hand hahaha.
I also resent services that require my birthdate despite having no valid reason to store it. Brings a smile onto my face realising that when my personal information is sold, 1970-01-01 will make my data seem spurious. While nobody likes spam, I quite enjoy targetted advertising clearly based on that age group, I even get happy birthday emails every new years day, hahahahaha.
→ More replies (2)
2
2
u/Carpetnoises21 Sep 05 '24
I like making my login admin' OR '1'='1 - - and adding my info as <script>alert(‘XSS’)</script> in any input validation if CSP or x-xss-protection is disabled, such fun i like it aswell if i can RCE into certain places it's so trolling omg (jumps around like e-girl) /.../.../.../.../?cmd=?
Omg such fun
2
2
u/balunstormhands Sep 05 '24
Had to troubleshoot a customer that was getting this kind of output on our software. Learned it's called mojibake. Turned out that their database was not using UTF-8 encoding. Updated the docs to explicitly setup with UTF-8, because some people like to use something else.
2
2
2
u/Frogtoadrat Sep 05 '24
My old company told us to test their new website. I put a few emojis in the form and it completely broke it. They were annoyed lol
2
2
2
2
2
1
1
u/Dmayak Sep 05 '24
Someone just pasted from Word or maybe hacker/bot shenanigans, nothing to worry about if it doesn't happen with every submission.
1
1
1
1
u/Dillenger69 Sep 05 '24
Unicode control characters are fun too!
They aren't displayed and they really gum stuff up
1
u/sboger Sep 05 '24
Lol... Tenderlove is Ruby famous, and now Reddit famous. I worked with him at his first job in Seattle. A seriously righteous dude.
1
1
Sep 05 '24
My favorite are the compilers that convert your character representation into the actual character and then they pretend that's how it should be done. Looking at you SASS compiler... lameasses.
1
u/scriptmonkey420 Sep 05 '24
In PROD? not really, no one is going to see it unless an INC ticket is put in.
If I see it in QA or DEV, yup, i think i have a bug.
1
1
1
Sep 05 '24
nah I will just assume it's some other language my computer doesn't support. if you can find a way to change the color to red on my end you'll have convinced me, though
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/Joe_Ronimo Sep 05 '24
I just cleared the �s out of some supplied data. I have no idea how they're randomly applying them in place of some spaces, but not all of them.
→ More replies (2)
1

8.0k
u/_Decimation Sep 05 '24 edited Sep 05 '24 •
My favorite Unicode character is
U+200B, the zero width space. You can imperceptibly smuggle the character inside any string:foo(3 characters)bar(4 characters)