rejetto forum

Filename's Problem

Guest · 6 · 2245

0 Members and 1 Guest are viewing this topic.

TonyYang

  • Guest
I Install SuSE 10 by HFS
but...if filename have '+' character, it's can't download
why?
Is it a bug?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.

Quote
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.


Anonymous

  • Guest
like 'compat-libstdc++-5.0.7-6.i586'

It can be list by browser,

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~ :#)


Anonymous

  • Guest
I Install SuSE 10(Linux) by SuSE 10's installer

so, the installer is client...XD


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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 ;)


Anonymous

  • Guest
OK!
The problem is be solved :o

Thank you! :^^: