Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> essentially leaking the existence of something terrible inside

It's just a restriction imposed on SharePoint folder names bubbling up. Nothing fancy.



i was going to write a bunch of suggestions for solving the problem but then i remembered i hate microsoft


I at least upvoted. This is the most level headed and sane reaction to this article.


Name checks out.


Those should obviously be UUIDs. Labels and titles should be a simple changeable, internationalizable attribute.

Like usernames. You don’t use usernames as primary keys for anything, do you? What happens when people marry?


Extremely relatable post. I worked someplace that had a policy of absolutely never changing your Active Directory username because it was the primary key in like a dozen internal systems. Someone finally made a massive stink about it to HR when their name had legally changed but IT was forcing them to use their old name (and they were absolutely right to complain. It was a ridiculous policy only in place due to terrible architecture). They still defaulted to telling people no but they did at least document all the highly tedious manual steps necessary to change the name in all affected systems if (when) another employee refused to take no for an answer.

Was certainly a great lesson in schema design, among other things.


> You don’t use usernames as primary keys for anything, do you?

HAHAHAHHHAAHAHA

Seen this so many times I literally laughed out loud.


Windows actually uses SIDs to map internal users to windows settings such as profile locations and group policies. Open regedit and under HKEY_USERS there will be the SID for your user account which maps to HKEY_CURRENT_USER.

Linux has UIDs that map to the username.

Both methods allow for changing the user name without having to change permissions on files. Both need manual manipulation to transition the user's folder name to the new username. Both also allow for creating a user folder that does not match the username. Example HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList on Windows.

Best practice and reality are two different things. Even Microsoft often will use the fully qualified user profile path in their coding instead of %USERPROFILE%, example would be OneDrive. Just look at the Environment key in regedit for the current user.


I too love folders with 200 UUID subfolders in them as well as URLs with 14 different UUIDs.


And what happens when you sync sharepoint to your windows files?


> Like usernames. You don’t use usernames as primary keys for anything, do you? What happens when people marry?

well it's extremly painful to rename the primary mail address or the UPN when it comes to microsoft 365 and active directory, especially in a hybrid environment. of course you can change upn's but it's definitly some kind of "primary key" for a user. in fact most systems at least use a UPN


> You don’t use usernames as primary keys for anything, do you?

Sure you do. Saves doing joins all over the place just to get someone's username. Makes hand writing SQL easier.

Apply head to desk.


It goes lower than that. Try creating a directory called "LPT1" in DOS


omg


Or the terribleness falls one down very fancy?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: