#3507 closed defect (wontfix)
unable to correctly upload a file containing a slash ("/")
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.9 |
Severity: | normal | Keywords: | attachment, macosx |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
Ok, first let's put the discussion aside why someone would want to have a filename containing a slash. I know it's stupid, especially on UNIX-like systems but at least on Mac OS X it is possible to have them and users sooner or later do anything that's possible…
Summary: Is impossible to upload a file containing a slash correctly.
Steps to Reproduce:
- create a file called a/b.txt (see screenshot)
- attach it
Expected Results:
the attached file should be called a/b.txt
Actual Results:
the attached file is be called b.txt
Notes:
- I have attached the file from the screenshot
- This might be a duplicate of Ticket #2981
- My configuration:
Server:
Power Mac G4 Mac OS X 10.4.7 running trac 0.9
Client:
iMac Intel Mac OS X 10.4.7 Safari 2.0.4
regards,
Roddi
Attachments (2)
Change History (6)
by , 18 years ago
by , 18 years ago
Attachment: | scrsh-example.jpg added |
---|
screenshot of a Finder window containing the example file
comment:1 by , 18 years ago
from the shell:
roddi@sauron ~/Desktop/example % ls -l total 1 -rw-r--r-- 1 roddi ilink 7 Aug 3 11:12 a:b.txt
comment:2 by , 18 years ago
RFC1867 which documents file upload from an HTML form is not really clear about how to deal with filenames. Non-ASCII chars should be encoded, but the '/
' and the ':
' chars are pure ASCII. I did not manage to find references about this MacOS specific issue.
However, I don't think the server can store a file with a filename that contains '/
' characters, as I don't see how a non-Macintosh computer could deal with such a pathname at download time.
The best option to preserve the client platform interoperability for now would be to follow the RFC1867 proposal for non-ASCII filenames: "the file name might be approximated".
'/
' and ':
' could be replaced with a OS neutral character such as the underscore.
comment:3 by , 18 years ago
Keywords: | attachment macosx added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
We don't want to support filenames with "/" inside, as they're really not portable and it will break the assumption we're making for the attachment URLs.
If the error message is not clear, we could improve it.
comment:4 by , 10 years ago
Keywords: | attachment macosx → attachment, macosx |
---|
the file that is originally called "a/b.txt"