rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: TonyYang on March 28, 2006, 09:51:36 AM
-
I Install SuSE 10 by HFS
but...if filename have '+' character, it's can't download
why?
Is it a bug?
-
beware of the plus sign :)
it is quite ambiguous because it is often used as replacement for white space.
in facts HFS translate it that way.
any "+" char in the filename should be translated to %2B
as white space should be translated to %20.
"+" could be a translation for white space but i remember somewhere clients misreading.
could you tell me what client was downloading such file?
i just found the piece of RFC where it is told about it to be a special char.
2.2. Reserved Characters
Many URI include components consisting of or delimited by, certain
special characters. These characters are called "reserved", since
their usage within the URI component is limited to their reserved
purpose. If the data for a URI component would conflict with the
reserved purpose, then the conflicting data must be escaped before
forming the URI.
reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
"$" | ","
The "reserved" syntax class above refers to those characters that are
allowed within a URI, but which may not be allowed within a
particular component of the generic URI syntax; they are used as
delimiters of the components described in Section 3.
-
like 'compat-libstdc++-5.0.7-6.i586'
It can be list by browser,
(http://img57.imageshack.us/img57/8493/list9rl.png)
but can't be download, and HFS's log is recording
'Requested GET /K/suse/i586/compat-libstdc -5.0.7-6.i586.rpm'
Sorry, My English is bad, so I hope you can understand what am I saying~ :#)
-
I Install SuSE 10(Linux) by SuSE 10's installer
so, the installer is client...XD
-
i tested with Apache and saw it doesn't encode/decoded the plus sign in the path/filename, so it is better for HFS to behave this way.
if you redownload 2.0 you will find this problem fixed ;)
-
OK!
The problem is be solved :o
Thank you! :^^: