rejetto forum
May 23, 2012, 09:09:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Filename's Problem  (Read 1256 times)
0 Members and 1 Guest are viewing this topic.
TonyYang
Guest
« on: March 28, 2006, 03:51:36 AM »

I Install SuSE 10 by HFS
but...if filename have '+' character, it's can't download
why?
Is it a bug?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11826


View Profile
« Reply #1 on: March 28, 2006, 07:57:00 AM »

beware of the plus sign Smiley
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.
Logged
Anonymous
Guest
« Reply #2 on: March 28, 2006, 01:19:46 PM »

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~ :#)
Logged
Anonymous
Guest
« Reply #3 on: March 28, 2006, 01:28:11 PM »

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

so, the installer is client...XD
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11826


View Profile
« Reply #4 on: March 28, 2006, 04:08:36 PM »

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 Wink
Logged
Anonymous
Guest
« Reply #5 on: March 28, 2006, 06:33:16 PM »

OK!
The problem is be solved Shocked

Thank you! :^^:
Logged
rejetto forum
« Reply #5 on: March 28, 2006, 06:33:16 PM »

Do you like this software? Consider even $2
 Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 04:44:53 PM