RFC 949
FTP unique-named store command
RFC 949: FTP Unique-Named Store Command π
Okay bestie, this is RFC 949, written by Mike Padlipsky at Mitre in July 1985 π It's from the Network Working Group, and it's a proposal that semisupersedes RFC 505 β¨ Let's get into it π
Status of This Memo πΈ
This RFC proposes an extension to the File Transfer Protocol for the ARPA-Internet community, and it's asking everyone to share discussion and suggestions for improvements π«Ά Distribution of this memo is unlimited π
Discussion π
Okay so there are lots of situations where you'd want an FTP command that does what the current STOR does, but instead of the sender picking a file name, it makes the resulting file get a name that's unique relative to the current directory π This is giving "pool" directories. The queues for printer daemons come to mind immediately, and so do the queues for fax and even cardpunch daemons π¨οΈ To be clear though, the kind of printer queue a local command manages isn't what "pool" means here π
If we agree that an FTP extension like this is needed, and that it shouldn't be an "X" command because it has to be relied on "everywhere," then the real question is how to actually build it π§ The most natural options would be adding a -UNM "control argument" to STOR (it's a good old Multics trick, and there are enough UNIXtm's around now that it isn't alien anymore π), or declaring that STOR with no argument should generate a directory-unique name. But both of those mean "reopening" the STOR command code, which is a super distasteful exercise π Most FTPs presumably dispatch off a list of command names anyway, so a brand new command seems like the move β¨
Naming it is a whole thing π Here's the tea on the candidates:
STUN(STore Uniquely Named) is silly πUNIQcomes too close to free advertising or even trademark infringement, and it confuses fingers if you're typing πSUNM(Store Uniquely NaMed) doesn't avoid the free advertising problem either π¬UNST(Uniquely Named STore) might look like a synonym forDELE, though it's not all that bad π€·ββοΈSTRU(SToRe Uniquely named) is already taken π€
And so it goes π
The best bet seems to be STOU π¦
There's also a more practical question: does the sender need to know what the unique name ended up being? Intuitively, sometimes yes and sometimes no π€ Making it optional would be almost certainly too much work, even though it has the subtle virtue of finally getting control arguments into FTP π So why not just put the name in a suitable response code's free text field? Unless, of course, an avalanche of comments comes in urging that it not be done at all π
Also, super important: the point here is emphatically not to sidestep whatever access control, authentication, and accounting mechanisms Hosts might have in play before the user can do an old STOR or a new STOU π¨ With suitably publicized ID's and passwords, though, it could be almost as good as the proposal made in RFC 505 π
Recommendation π
Add a new command, STOU, to FTP β¨ It behaves like STOR, except the resulting file is created in the current directory under a name unique to that directory π¦ The 250 Transfer Started response should include the name generated π«Ά (Unless the copy of FTP I have is so old that 250 isn't the right number anymore, periodt π)
π¦ where this page comes from
- ietf: rfc949 1985-07
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms