456
submitted 1 month ago by Gork@sopuli.xyz to c/softwaregore@lemmy.world
top 50 comments
sorted by: hot top new old
[-] Entertainmeonly@lemmy.blahaj.zone 112 points 1 month ago

Auto fill likes to put a space after the name that often will make these forms freak out.

[-] dohpaz42@lemmy.world 63 points 1 month ago

Not always. My mortgage company uses a software where it treats the password as invalid if it’s autofilled. I have to copy and paste the password into the box to remove the error.

Why people and companies need to make things purposefully difficult is beyond me. This shit is decades old and solved. Yet, they’re still constantly broken.

[-] brb@sh.itjust.works 54 points 1 month ago

What usually works is adding a character at the end of the autofilled password and then removing it

[-] nocturne@slrpnk.net 23 points 1 month ago

My old bank would not allow pasted passwords, nor autofill. For a while PayPal was the same way.

[-] cmnybo@discuss.tchncs.de 19 points 1 month ago

Many password managers have a function where they can fill the password by sending key presses for troublesome sites like that.

[-] acockworkorange@mander.xyz 8 points 1 month ago

https://github.com/marcos10pc/dont-f--with-paste-bookmark

Don't fuck with paste - a bookmarklet for those occasions.

[-] MonkderVierte@lemmy.zip 10 points 1 month ago* (last edited 1 month ago)

Security theater.
"Look, boss, i made thing more secure!"

load more comments (2 replies)
[-] eatham@aussie.zone 15 points 1 month ago

Spaces are valid within names.

[-] KairuByte@lemmy.dbzer0.com 9 points 1 month ago

Are they valid after names? I mean I suppose they could be, but how could you ever, and I mean ever, write out the name in that case?

[-] eatham@aussie.zone 25 points 1 month ago

No but the software should just remove excess whitespace instead of complaining

[-] tgxn@lemmy.tgxn.net 10 points 1 month ago

thing.trim()

[-] balsoft@lemmy.ml 9 points 1 month ago

No it shouldn't. Text field entry should have two properties: (1) accept any UTF-8 string, (2) do not modify that string.

If you want to make sure people don't make mistakes, take all your current validation code and turn it into a huge red warning that pops up if you try to continue with an "incorrect" field, asking you to double-check before proceeding. In the OP case it would be "You have entered an uncommon name", in case of extra whitespace it would be "There is whitespace after the name". Let the person themselves edit the field, don't change the text automatically at all.

If those fields are used for anything other than interacting with the person entering them, validate during submission. In this case, charge a $1 HOLD on the credit card using the info provided.

Anything other than that will lead to someone somewhere having an issue like the OP.

[-] eatham@aussie.zone 5 points 1 month ago

No, you should definitely sanitize the names if you are going to display them anywhere. You don't need JS to execute just because it's in someone's name, and that would also cause it to display incorrectly as the JS portion would not be shown. Getting rid of excess whitespace is fine aswell as it does not change the name

[-] balsoft@lemmy.ml 11 points 1 month ago* (last edited 1 month ago)

That's just awful security practices. You must not replace proper code/data separation with user input sanitization. If you are just pulling names from a database and inserting them into your DOM directly you're doing things majorly wrong and half your codebase probably needs rewriting from scratch.

If your stack does not support code/data separation, you should escape at the point of use/point of interface with other software, not at the point of user data entry.

You should not "sanitize" something as personal as a name. It is up to the individual to identify themselves as they see fit, whether it is some weird legal name or just how they want to present. For every "rule" about names you can think of, there will be an exception somewhere.

In fact, even splitting up the name field into "first name" and "last name" is already wrong. It should just be "name". If you need there to be a separate "first name" and "last name" for some reason (e.g. an external system which requires it), allow leaving either one as empty. Bonus points if you have independent "legal name" and "how would you like to be called" fields.

Getting rid of excess whitespace is fine aswell as it does not change the name

As a responsible developer you must not assume this. Especially if your software interacts with other systems. You never know what dumb shit some other system has got up to, maybe a clerk somewhere accidentally entered someone's name with a space and that person desperately needs to use your software while they're getting things fixed.

As an immigrant, I have been personally strongly inconvenienced by user input validation very often. For example, a tax agency system (which has my passport number recorded with a space) rejected automatic declarations from my bank (where the system did not allow spaces in the passport number) so I had to fill my tax declarations manually for a while. Or my bank rejecting bills from the water utility because the utility's system required entering two surnames, and I only have one, so they just put it in there twice. The amount of services which reject my pretty normal-looking self-hosted email address with "enter a valid email address" (presumably it must end in @gmail.com or @outlook.com) is staggering. This kind of bullshit is widespread and it needs to stop. You as a developer don't know better than the person entering the data about themselves.

[-] Pieisawesome@lemmy.dbzer0.com 5 points 1 month ago

100% this.

So many places do these things wrong and just make wild assumptions based on their limited PoV.

I just spent a month adding international phone, name, and postal code support to a legacy app at my job.

They weren’t even consistent with their enforcement inside of the app.

Don’t add validation for anything unless you understand 100% of the cases. You should use premade libraries or tools in most cases because you will do it incorrectly.

The rules around passwords are equally as dumb

[-] bhamlin@lemmy.world 8 points 1 month ago

Who are you to judge that my name isn't valid? I can be " Bart 2" if I want to be.

load more comments (3 replies)
[-] lime@feddit.nu 12 points 1 month ago

what if my name has a space at the end though?

[-] Birch@sh.itjust.works 6 points 1 month ago

Or this https://youtu.be/nq-dchJPXGA

Also, happy cake day!

[-] hig13@lemmy.world 6 points 1 month ago

Couldn't you just make it so the text box doesn't accept spaces to prevent that? Why allow a character to be input that makes the field invalid?

[-] gwl@lemmy.blahaj.zone 27 points 1 month ago* (last edited 1 month ago)

Yeah, that's also a bad idea, there's plenty of (mostly none-western) forenames that contain spaces, and plenty of surnames that contain spaces all over the world (Charles de Gaul, Guy Manuel de Hommen-baron)

All they really need to do is to onSubmit do a .trim() to the name

[-] FooBarrington@lemmy.world 16 points 1 month ago

Because even if a space at the end of the name should be considered invalid, people can have names with spaces inside.

[-] Whats_your_reasoning@lemmy.world 8 points 1 month ago

This is true. I know someone with a legal first name that's two words. He's a kid I work with. His parents made a point that his name isn't one or the other, it's both, and we are to address him as such.

To my understanding (as a non-tech person who consumes tech-related media), name fields are commonly culturally biased. Usually it impacts last names, which can vary in size and layout across the world, sometimes including hyphens (which some systems don't like either.) Super short or long names also run into problems. Not everyone has one first name, one middle name, and one last name, but a lot of systems aren't designed to handle that kind of variation.

load more comments (1 replies)
[-] MonkderVierte@lemmy.zip 8 points 1 month ago

Nah, backend is hard, and they only know JS.

[-] Kushan@lemmy.world 7 points 1 month ago

As a primarily backend engineer, I think the opposite here. The backend makes sense, JS is just a nightmare.

load more comments (1 replies)
[-] dev_null@lemmy.ml 7 points 1 month ago* (last edited 1 month ago)

Of course you can. But whoever developed the form didn't care about their craft.

[-] tigeruppercut@lemmy.zip 5 points 1 month ago* (last edited 1 month ago)

Japan has gotten a lot better but you still run into shit for this sometimes. First and middle names often have to be input without a space, so you end up with Johnwendell Anderson. And sometimes forms require names to be input with the Japanese phonetic alphabet (which lacks a lot of letters in English), and then if it doesn't match some document you need to verify an online input there can be trouble. So Jeeves would become Jiibuzu, and good luck matching that to your passport at the airport.

load more comments (2 replies)
[-] psycotica0@lemmy.ca 38 points 1 month ago

I don't know what the problem is for this person, but my name is Christopher. Super white, Christian, and "normal". My bank thinks my name is Christophe because apparently 10 characters is enough for the first name column.

[-] Rusty@lemmy.ca 16 points 1 month ago

Thank Christ the name limit is not 6.

[-] Amir@lemmy.ml 7 points 1 month ago

Christ never had a problem with it

load more comments (1 replies)
load more comments (1 replies)
[-] Dicska@lemmy.world 35 points 1 month ago

User first name 'Kristen' already taken.

[-] Couldbealeotard@lemmy.world 22 points 1 month ago

Invalid password. Already in use by Dicska.

[-] noughtnaut@lemmy.world 34 points 1 month ago

It's also fun buying tickets from the Belgian airline, when they tell me that my family name contains illegal characters. Really? Tell me they're invalid or better yet unacceptable, but not that.

[-] filcuk@feddit.uk 17 points 1 month ago

Programmers making ui/ux decisions haha. You'll pry 'undefined' from my cold, dead hands

[-] aldhissla@piefed.world 33 points 1 month ago

Yea, that's not a real name. You need to put in a real name, like Swaglynn.

[-] BoxOfFeet@lemmy.world 10 points 1 month ago

My mother-in-law worked at a preschool, and there was actually a little girl named Sexianna.

[-] aldhissla@piefed.world 7 points 1 month ago

Ok, that's straight up child abuse.

load more comments (1 replies)
[-] crakila@lemmy.world 19 points 1 month ago

Ok "Kristen" if that is even your name 🙄

[-] ivanafterall@lemmy.world 18 points 1 month ago

Well done, web form. One less of these damn fakers to wade through. KRISTEN. 👏 ISN'T. 👏 A NAME. 👏

[-] TootSweet@lemmy.world 16 points 1 month ago

I'd try replacing letters with homoglyphs. Doubt it would work, but not so much that I didn't think it was worth a try.

I mean, first I'd check to make sure I hadn't added any leading/trailing spaces. There does appear to be a lot of space before the K. Might technically be why it isn't working.

Not that the site doesn't still have serious dumb issues even if that is the issue. But yeah.

[-] nexguy@lemmy.world 12 points 1 month ago* (last edited 1 month ago)

Pkhrighstehn

[-] Duamerthrax@lemmy.world 11 points 1 month ago

There's a lot of whitespace before the name. Any chance they hit the space bar before talking the screen shot?

[-] Auster@thebrainbin.org 5 points 1 month ago

Aren't names in credit cards all capitalized? Maybe worth trying KRISTEN instead of Kristen.

[-] betterdeadthanreddit@lemmy.world 9 points 1 month ago

It's my strawman, I'm making a special appearance in this admiralty court as the settler and natural person. Also, I'm traveling.

[-] kesslerpartyatmyplace@anarchist.nexus 6 points 1 month ago* (last edited 1 month ago)

Oh shit I gave admiralty court tomorrow! I'm going to give a sovcit speech then instead of insisting the laws don't apply, because I kind of live on the beach, they just only apply if it stays on theme. Community service? Not valid unless they specify 'beach cleanup' or 'cleaning barnacles off of boats'. Jail? No. Has to be ship's brig.

Do you think I can make the judge wear a captains hat and a sword instead of a robe and a hammer?

load more comments (4 replies)
[-] schnurrito@discuss.tchncs.de 5 points 1 month ago

I never do that and it always works anyway.

load more comments (2 replies)
[-] 777Prawn@sh.itjust.works 5 points 1 month ago

Fck Kristen! lol

load more comments
view more: next ›
this post was submitted on 21 Aug 2026
456 points (99.6% liked)

Software Gore

6625 readers
1 users here now

Welcome to /c/SoftwareGore!


This is a community where you can poke fun at nasty software. This community is your go-to destination to look at the most cringe-worthy and facepalm-inducing moments of software gone wrong. Whether it's a user interface that defies all logic, a crash that leaves you in disbelief, silly bugs or glitches that make you go crazy, or an error message that feels like it was written by an unpaid intern, this is the place to see them all!

Remember to read the rules before you make a post or comment!


Community Rules - Click to expand


These rules are subject to change at any time with or without prior notice. (last updated: 7th December 2023 - Introduction of Rule 11 with one sub-rule prohibiting posting of AI content)


  1. This community is a part of the Lemmy.world instance. You must follow its Code of Conduct (https://mastodon.world/about).
  2. Please keep all discussions in English. This makes communication and moderation much easier.
  3. Only post content that's appropriate to this community. Inappropriate posts will be removed.
  4. NSFW content of any kind is not allowed in this community.
  5. Do not create duplicate posts or comments. Such duplicated content will be removed. This also includes spamming.
  6. Do not repost media that has already been posted in the last 30 days. Such reposts will be deleted. Non-original content and reposts from external websites are allowed.
  7. Absolutely no discussion regarding politics are allowed. There are plenty of other places to voice your opinions, but fights regarding your political opinion is the last thing needed in this community.
  8. Keep all discussions civil and lighthearted.
    • Do not promote harmful activities.
    • Don't be a bigot.
    • Hate speech, harassment or discrimination based on one's race, ethnicity, gender, sexuality, religion, beliefs or any other identity is strictly disallowed. Everyone is welcome and encouraged to discuss in this community.
  9. The moderators retain the right to remove any post or comment and ban users/bots that do not necessarily violate these rules if deemed necessary.
  10. At last, use common sense. If you think you shouldn't say something to a person in real life, then don't say it here.
  11. Community specific rules:
    • Posts that contain any AI-related content as the main focus (for example: AI “hallucinations”, repeated words or phrases, different than expected responses, etc.) will be removed. (polled)


You should also check out these awesome communities!


founded 3 years ago
MODERATORS