News for hackers. Stuff that matters.
Re:Username ending with MIME type format is not allowed by a-dub on Wednesday September 15, 2021 @01:50AM (#28535698)
it seems pretty obvious that they mean any file extension registered to a known MIME type.
Re:Username ending with MIME type format is not allowed by gpvos on Wednesday September 15, 2021 @02:01AM (#28535757)
It's easy, basic, and very important for clarity to use the correct terminology in this case. A MIME type is really something different.
Re:Username ending with MIME type format is not allowed by a-dub on Wednesday September 15, 2021 @06:57AM (#28537554)
"ERROR: The Gitlab server has rejected the proposed username, as it ends in the same suffix as a file extension that is registered to a MIME type in the Ruby runtime under which the server runs. This list is quite long, and possibly difficult to retrieve, so we will not list it here, but you can find a list of extensions commonly used if you Google for MIME. Alternatively, if this makes no sense at all, ask a local alpha geek and they should be able to help. We understand this is weird, but the reasons for doing so are currently embargoed as they potentially have wide ranging security or stability consequences for a large number of installs. If you wouldn't mind, please do us a small one and keep quiet while we have a chance to prepare and distribute a patch without forcing anyone to forego any nights of sleep 18 months into a global pandemic complete with associated societal fracturing and potential economic collapse. Thank you for your cooperation on this easy, basic and very important matter."

fixed it!

Re:Username ending with MIME type format is not allowed by p49k on Wednesday September 15, 2021 @04:42AM (#28536725)
It’s unrealistic to expect everyone to be able to know and use terminology perfectly. The description itself was well-written and that’s what’s important in terms of finding/fixing the issue.
Re:Username ending with MIME type format is not allowed by DonHopkins on Wednesday September 15, 2021 @07:09AM (#28537610)
It's foolish to use a standard well defined very precise but incorrect term of art like like "MIME Type" that is actively misleading to a technical audience of github users who are more likely than most people to know the standard official definition, and which is LESS commonly known than a correct widely understood vernacular term like "file name extension", if your goal is to be understood by everyone.

I'd rather a technically oriented site like github be "unrealistic" and correct and instructive, than foolish and wrong and misleading. Are you really saying it's better to use the wrong term because github users might not understand the more widely known correct term?

Just how does leading the user on a wild goose chase looking up the definition of "MIME Type," causing them to waste their time and misunderstand the error message, when it's really a file name extension (a term which more people understand anyway), help the user achieve their goals?

The bottom line is that github disallowing "MIME Types" or "file name extensions" in user names, just like a bank disallowing "select" and "drop" and "from" and "null" and "delete" and "bobby" and "tables" in passwords, is a symptom of a much larger more terrible problem, and whoever wrote that stupid error message instead of fixing the underlying bug that caused it has much worse problems than poor English language writing skills.

Re:Username ending with MIME type format is not allowed by carl_dr on Wednesday September 15, 2021 @09:47AM (#28538968)
Muphry's law strikes again!

The bug affected Gitlab, not GitHub.

Re:Username ending with MIME type format is not allowed by p49k on Wednesday September 15, 2021 @08:03AM (#28537987)
Sorry, I thought you were referring to the bug reporter rather than the author of the error message itself, in the latter case I agree.
Re:Username ending with MIME type format is not allowed by rjmunro on Wednesday September 15, 2021 @05:46AM (#28537137)
The bug reporter merely copies the incorrect error that gitlab gave him; The issue here is that someone working in login / security of gitlab doesn't know what a mime type is. That is extremely worrying - it's not a part of the code where you can afford to be sloppy.

It's a very odd error. Apparently .nro is a file extension used by the Nintendo Switch video game console; .o is obviously the output of compilers, so I'm not sure why my username wasn't rejected. Maybe it would be if I tried to register now.

Re:Username ending with MIME type format is not allowed by jfrunyon on Wednesday September 15, 2021 @07:11AM (#28537621)
No file extension <-> MIME type "registry" exists. File extensions exist completely outside of MIME. Many file extensions do not correspond to a registered MIME type, or in many cases even a de-facto one (other than application/octet-stream or text/plain).

It seems pretty obvious - based on the failed username in question, and to someone with fairly deep technical knowledge - that they mean anything they consider a file extension. Which is not an excuse for this marvel of awful UI slapped on top of a poorly-thought-out workaround (for some unknown vuln (that's been patched for over 2 months and is still private? quite strange for an "open" company eh?).

Re:Username ending with MIME type format is not allowed by defanor on Wednesday September 15, 2021 @09:43AM (#28538938)
FWIW, the IANA media type registry [1] lists "File extension(s)" under "Additional information" for some of the media types, so it may make sense to speak of filename extensions associated with registered media types. Though given the initial odd wording, it could be anything.

Edit: as for what's actually used, looks like [2] it's the ruby mime-types gem [3], which is based on both IANA registry and various other recommendations [4], AIUI.

[1] https://www.iana.org/assignments/media-types/media-types.xht...

[2] https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65954/...

[3] https://rubygems.org/gems/mime-types

[4] https://github.com/mime-types/mime-types-data

Re:Username ending with MIME type format is not allowed by jfrunyon on Wednesday September 15, 2021 @11:49PM (#28547754)
Uhh, I'm not sure where you see the word "extension" on your [1], but I don't.

Registrants can include info like file extensions with their registration, but those extensions are not registered (not by IANA, anyway).

Re:Username ending with MIME type format is not allowed by defanor on Thursday September 16, 2021 @04:01AM (#28549229)
That "[1]" was for the registry, the extensions are listed for particular media types, such as application/xml [1]. Also mentioned in RFC 6838 section 4.12 [2].

And indeed, what IANA registers there is media types, so I've only mentioned associations. I think it still works for a-dub's argument, that it's obvious (though I'd word it differently, such as it being a reasonable guess) that if "MIME type format" is mentioned and "mov" is shown as an example, what's actually meant is filename extensions associated with registered and/or otherwise known media types (which turned out to be the case).

[1] https://www.iana.org/assignments/media-types/application/xml

[2] https://www.rfc-editor.org/rfc/rfc6838.html#section-4.12

Re:Username ending with MIME type format is not allowed by jfrunyon on Friday September 17, 2021 @08:33AM (#28564692)
But "mov" is not shown as an example. The particular requestor in this issue wanted to use mov, however no example was shown in the error message. Moreover even in the requestor's case the user has to already be savvy enough to guess that "mov" is the part of "isaac.asimov" that it had a problem with, which is not at all obvious.

I don't know exactly what list GitLab is using (because, as has been mentioned, there's no central registry of file extensions), but there are many extensions more obscure and less obvious than even mov, which would further obfuscate the actual problem.

Re:Username ending with MIME type format is not allowed by yuliyp on Wednesday September 15, 2021 @08:19AM (#28538122)
Officially no such registry exists. In practice, Apache does have such a registry by default: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf... and other systems do use that mapping or a similar one.
Re:Username ending with MIME type format is not allowed by jfrunyon on Wednesday September 15, 2021 @11:52PM (#28547770)
> File extensions exist completely outside of MIME.

Yes. I am well aware that certain software, such as Windows, MimeMagic, or Apache, do include their own lists. That is not a "registry" and in fact you will likely find that every such list is either identical to, a fork of, or incompatible with every other such list.

Re:Username ending with MIME type format is not allowed by yuliyp on Thursday September 16, 2021 @08:14PM (#28559529)
I agree with you, I think?

Whether you call such a list a registry or not is fairly trivial, I think. Their web server uses such a mapping, and for some reason usernames with suffixes on that list confused something. Call it a registry, or a mapping, or a list, the meaning of the statement is the same, and I don't think it prevents most people from understanding what's going on.

Re:Username ending with MIME type format is not allowed by jfrunyon on Friday September 17, 2021 @08:36AM (#28564727)
registry (noun): a place or office where registers or records are kept; an official list or register.

In this case, a registry would be a mapping, however a mapping is not a registry. A registry is the single, centralized place from which you can look up registrations, to guarantee that there are no conflicting records. Literally none of that is (or can be, at this point) true of file extensions.

Re:Username ending with MIME type format is not allowed by hnlmorg on Wednesday September 15, 2021 @02:40AM (#28535965)
In fairness, it is Gitlabs wording the issue reporter is using. Check the error message.
Re:Username ending with MIME type format is not allowed by Grollicus on Wednesday September 15, 2021 @02:54AM (#28536050)
Gitlab recently exchanged the "WIP" prefix for merge requests (Work in Progress = started to do something but didn't complete it yet) for "Draft", which has connotations of throwing the draft/sketch away to build the final product.

Which is definitively not what is meant there. But I think it shows that Gitlab is not a company I'd go to if I wanted linguistic precision.

Re:Username ending with MIME type format is not allowed by gls2ro on Wednesday September 15, 2021 @03:42AM (#28536367)
I am not a native English speaker (and I don't work at Gitlab) but I am curious and interested in using proper terms, as I think as developer that naming is a very important skill.

So, I find strange this meaning that you give for a "draft" = that it is something that has connotation of throwing away when building the final product.

I think you are confusing a "draft" with a "sketch" and they are not the same.

I googled the term "draft" and here is what I found:

> "a version of something (such as a document) that you make before you make the final version" [1]

> "A preliminary version of a piece of writing." [2]

While "sketch" means:

> "a rough drawing representing the chief features of an object or scene and often made as a preliminary study" [3]

> "A rough or unfinished version of any creative work." [3]

> "A rough or unfinished drawing or painting, often made to assist in making a more finished picture." [4]

In the case of sketch I see some keywords like "preliminary study" or "assist" or "unfinished version" that indicates that the sketch will not be the final product.

So while it is true that a Draft could be thrown away if someone has new/better/difference ideas while working on it, it does not seem to imply that a Draft should be thrown when building the final product.

As far as I understand it is more that a draft will evolve into a final product or might be abandoned.

[1] https://www.merriam-webster.com/dictionary/draft

[2] https://www.lexico.com/definition/draft

[3] https://www.lexico.com/definition/sketch

[4] https://www.merriam-webster.com/dictionary/sketch

Re:Username ending with MIME type format is not allowed by d1sxeyes on Wednesday September 15, 2021 @04:32AM (#28536671)
Unfortunately, here, I think the problem is that English is not very clear.

As a native English speaker, the first time I encountered the word 'draft' was at primary school. We used it to describe a piece of writing where presentation was not the focus, instead, content and accuracy in terms of spelling, grammar, and punctuation would be the focus. Once the drafts were complete, we would 'copy these up' in our neatest handwriting.

However, if I prepare a 'draft' of some document or other for my boss, I expect it to be essentially an unapproved version of a final document, perhaps needing some minor modifications before release, but also perhaps not.

Although personally, I would use 'sketch' to mean something disposable which illustrates a more perfect version, my grandmother is an artist, and she refers to the initial drawings she makes on the canvas as 'sketches', which she then paints over in more detail.

Essentially, I don't think there's a big difference between draft and sketch - both could (in my opinion) represent either a version which will be discarded or which will be developed further.

Overall, I think here, the 'Work In Progress' label is the clearest and least likely to be interpreted differently by different users.

Re:Username ending with MIME type format is not allowed by avianlyric on Wednesday September 15, 2021 @05:04AM (#28536858)
It's also interesting the in English we also have Drafters or draughtsman/draughtswoman, who's job is drafting, which is the process of creating technical drawings for manufacture.[1]

In a highly technical environment this is the kind of work I associate with drafting, but not necessarily with the word draft.

The wikipedia page for "Draft" has a veritable smorgasbord of different things that are considered "Drafts"[2], which kind of illustrates that getting pedantic about the definition of the word is losing proposition.

But a native english speakers as well, I agree with you, that the everyday colloquial definition of the word "draft" is an incomplete piece of work that needs further refinement before it can be considered complete or final.

[1] https://en.wikipedia.org/wiki/Drafter [2] https://en.wikipedia.org/wiki/Draft

Re:Username ending with MIME type format is not allowed by DonHopkins on Wednesday September 15, 2021 @07:26AM (#28537728)
But in the days of digital files, unlike the days of typewriters that put ink on paper, it's much easier to edit a draft into the final product.
Re:Username ending with MIME type format is not allowed by Grollicus on Wednesday September 15, 2021 @04:02AM (#28536499)
> I am not a native English speaker (and I don't work at Gitlab) but I am curious and interested in using proper terms, as I think as developer that naming is a very important skill.

That is it for me too and why I think this change is so annoying.

WIP means something is being worked on. [0]

Draft can mean the same, but it also has a bunch of other possible meanings. Note that if you search in both of your sources, you'll find "sketch" as an explaination. It can mean the same, but it can also mean a bunch of other things. It's a strictly worse name.

[0] https://en.wiktionary.org/wiki/WIP

Re:Username ending with MIME type format is not allowed by capableweb on Wednesday September 15, 2021 @04:13AM (#28536562)
Most likely the rename is in order to get more people to understand what it is without having to look up abbreviations. "Draft" is clear to most people who know English, while "WIP" puts a lot more burden on the reader in terms of what they already need to know in order to understand.
Re:Username ending with MIME type format is not allowed by DonHopkins on Wednesday September 15, 2021 @07:29AM (#28537749)
But they can just google WIP at work! ...Until Cardi B comes out with another song about her hoo haa haa with that title.
Re:Username ending with MIME type format is not allowed by dmurray on Wednesday September 15, 2021 @03:55AM (#28536466)
Yeah, I think this is fair.

A draft in the visual arts (drawing, painting), is typically abandoned, like a sketch. Perhaps it uses a different medium to the final version, and in any case can't easily be adapted.

A draft in writing is typically incrementally improved, or at least we think of it that way now that we write on computers. We don't need to start again even for substantial changes like adding a new paragraph.

Re:Username ending with MIME type format is not allowed by mewpmewp2 on Wednesday September 15, 2021 @04:04AM (#28536506)
In internet, in most places I've seen "draft" as being something that is not yet published. For example in a lot of blogging software like WordPress, you can save your post and it will be "Draft", but only will be visible to others when you publish, so it's not thrown away in most contexts that I know it being used in the Internet.
Re:Username ending with MIME type format is not allowed by dmurray on Wednesday September 15, 2021 @04:19AM (#28536596)
Isn't it the same connotation here? The work is shared with your collaborators, but not yet "published" to the master branch or to customers or wherever?
Re:Username ending with MIME type format is not allowed by mewpmewp2 on Wednesday September 15, 2021 @06:15AM (#28537334)
Yeah, so in my opinion "draft" works well as a descriptor.
Re:Username ending with MIME type format is not allowed by gerdesj on Wednesday September 15, 2021 @04:24AM (#28536626)
Draft is also the depth of water displaced by a boat/ship.

Draught (sounds the same as draft) is the wind through a crack or a type of beer. A door or window might be draughty but a beer wont.

Drought looks similar but sounds like "drowt" and is what you get when there is a long period of time without rain.

Be careful with draft, draught and drought!

Re:Username ending with MIME type format is not allowed by capableweb on Wednesday September 15, 2021 @04:12AM (#28536555)
> which has connotations of throwing the draft/sketch away to build the final product

I think it's only software developers who urge others to first write a draft, then throw it away and start working on the real thing. Usually, a draft precedes the "real" version and it's a status attached to something. Eventually, a "draft" becomes "published" or something similar.

Authors, scientists, email writes, report creators, movie/music producers all create drafts that (maybe) eventually become the real thing, I don't think many of them throw away the draft but rather work on the draft until it's not a draft anymore.

Re:Username ending with MIME type format is not allowed by justinclift on Wednesday September 15, 2021 @04:41AM (#28536720)
> ... which has connotations of throwing the draft/sketch away to build the final product.

Interesting. What industry does it that way?

Re:Username ending with MIME type format is not allowed by eurasiantiger on Wednesday September 15, 2021 @03:52AM (#28536436)
GitHub is using ”draft”, maybe that is the reason.
Re:Username ending with MIME type format is not allowed by hibbelig on Wednesday September 15, 2021 @08:19AM (#28538121)
> it seems pretty obvious that they mean any file extension registered to a known MIME type.

I guess I'm dense, but I actually thought it's about users such as Mr. Joe R Text/Plain. When I read about "mov" in the actual issue, then it became clear.

Re:Username ending with MIME type format is not allowed by DonHopkins on Wednesday September 15, 2021 @07:00AM (#28537573)
Since file extensions can be any three or fewer (or even more) valid characters, then no string ending with zero to three characters, in other words, no user names are valid.
Re:Username ending with MIME type format is not allowed by AlfeG on Wednesday September 15, 2021 @05:05AM (#28536860)
I guess author of ticket were referring to internal type name mime_type