bugmldonkey, a multi-networks file-sharing client - Bugs: bug #9213, Rename problem to any filename...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9213: Rename problem to any filename with % (percent)

Submitter:  Artifex Maximus <artifex>
Submitted:  Fri 04 Jun 2004 07:36:37 AM UTC
Votes: 1
 
Category:  Core Severity:  4 - Important
Item Group:  Program malfunction Status:  None
Assigned to:  None Open/Closed:  Open
Release:  2.8.2 Release: 
Operating System:  FreeBSD Binaries Origin:  CVS / Self compiled
CPU type:  Intel x86

Jump to the original submission

Sat 24 Mar 2007 04:35:29 PM UTC, comment #19: 

You mean patch 5775?  Doesn't help:

rename "foo bar baz.quux" to "foo+bar%2Bbaz.quux" -> web interface reports that file was successfully renamed to "foo bar+baz.quux"

Sergey Svishchev <shattered>
Mon 19 Mar 2007 12:07:03 AM UTC, comment #18: 

Please try again with current CVS, some work has been done on this problem.

spiralvoice <spiralvoice>
Group administrator
Thu 25 Jan 2007 10:59:42 PM UTC, comment #17: 

"+ and % are allowed and possible, but if you use the html gui the command to rename the file are send via the http proto where the url is encoded, so + is an space and %2b is an +, thats not an mldonkey bug"

How's that not a mldonkey bug?  Web interface is a part of mldonkey.  These chars should be just URL-escaped, that's all.

Sergey Svishchev <shattered>
Thu 18 Jan 2007 07:41:28 PM UTC, comment #16: 

" and \ are illegal chars on some filesystems and are not allowed, they are renamed to _
+ and % are allowed and possible, but if you use the html gui the command to rename the file are send via the http proto where the url is encoded, so + is an space and %2b is an +, thats not an mldonkey bug
if you want to use such chars then rename the file with sancho i.e

the filename_rename.patch only rename the " chars to _ at the html input box before sending it to core to prevent the 'Bad number of args' error

Schlumpf <schlumpf_>
Group Member
Sun 14 Jan 2007 12:27:04 PM UTC, comment #15: 

bug 17116 may be related too.

Sergey Svishchev <shattered>
Sun 14 Jan 2007 12:25:39 PM UTC, comment #14: 

OK, built 2.8.2 with filename_rename.patch and string2_tokens_quoting_fix.patch. 

I guess they were intended to solve different problem, because the one I've reported is still there -- I'm still unable to use literal ", \ and + chars.  % still acts as an escape char (try entering %2b).

Sergey Svishchev <shattered>
Sun 14 Jan 2007 10:44:29 AM UTC, comment #13: 

check out patch #5679

Schlumpf <schlumpf_>
Group Member
Mon 02 Jan 2006 04:09:04 PM UTC, comment #12: 

Tried 2.7.1 + this patch.  # and & are ok, but:

" causes an error: 'Bad number of arguments'
\ acts as an escape char (has to be doubled)
+ inserts space (however, %2b inserts +)
% is not escaped

Sergey Svishchev <shattered>
Mon 02 Jan 2006 12:18:21 AM UTC, comment #11: 

Please test patch #4748

spiralvoice <spiralvoice>
Group administrator
Sun 27 Nov 2005 06:59:09 PM UTC, comment #10: 

Perhaps this is the same bug...

mldonkey 2.6.5, ocaml 3.08.4, built from NetBSD pkgsrc on NetBSD/i386 3.99.10.

- connect to the web interface
- click "Transfers", "Downloads"
- click any file name in the list
- in the "Filename" edit box, insert '"', '#' or '&' character in existing file name, then press Enter to commit the change
- file is not renamed, and error message is displayed:
For '#', '&':
  Unknown type for content :
  Exception Failure("Unterminated delim \"")
For '"':
  Bad number of arguments

Sergey Svishchev <shattered>
Sat 30 Oct 2004 11:17:18 AM UTC, comment #9: 

Does your filesystem allow you letters like the one you mentioned?

spiralvoice <spiralvoice>
Group administrator
Wed 11 Aug 2004 01:31:33 PM UTC, comment #8: 

I try on the freshly compiled CVS (2.5-27) on a FreeBSD with ocaml3.08. I try to rename with % in it and it works great. But when I try to rename a file with "&" within web interface's pull down menu or input box (anything -> anythin&g):
Exception Failure("Unterminated delim \"")
If I try the same with double-quotes in input box ("anythin&g") following error occured:
Bad number of arguments

Artifex Maximus <artifex>
Tue 10 Aug 2004 06:48:17 PM UTC, comment #7: 

Changing severity to 1 because this bug might be solved in current CVS release.

spiralvoice <spiralvoice>
Group administrator
Tue 10 Aug 2004 02:53:15 PM UTC, comment #6: 

Please try CVS 2-5-27 and report if the bugs is solved

spiralvoice <spiralvoice>
Group administrator
Tue 10 Aug 2004 10:57:22 AM UTC, comment #5: 

On Windows platforms filenames are not allowed to have a % character, so I think they will get filtered along with other letters. Please have a look at this thread:
http://mldonkey.berlios.de/modules.php?name=Forums&file=viewtopic&p=14445#14445

spiralvoice <spiralvoice>
Group administrator
Tue 10 Aug 2004 10:51:53 AM UTC, comment #4: 

Havin the same problem with CVS 2-5-26 when putting a % into an existing filename:
HTTPSERVER: Exception Failure(_) in request_handler

spiralvoice <spiralvoice>
Group administrator
Fri 23 Jul 2004 09:29:08 AM UTC, comment #3: 

Hm. I'm the only one who see the filled form values? I give my system, version and how I obtain it.

But here it again:
- FreeBSD 4-STABLE
- ocaml 3.07p2
- MLD 2-5-21e self compiled
- enough free space (~1GB)
- enough free memory (~10MB of 192MB)
- i don't make any log sorry
- problem happens when i go into a download on web interface and choose any name from list or write the new name into the input box (i tried without double-quotes)

Artifex Maximus <artifex>
Thu 22 Jul 2004 11:22:02 PM UTC, comment #2: 

The information you provided for this bug is not suffisant to
track it and solve it. Please, you need at least to give the
following information:

- mldonkey version ?
- downloaded from Savannah or compiled ?
- your system ? (OS, memory, free disk space)
- when did the bug appeared ?
- have you a log file (mldonkey output obtained by
    ./mldonkey &> mldonkey.log
  with option 'verbose' set to true) ?

spiralvoice <spiralvoice>
Group administrator
Tue 15 Jun 2004 01:00:35 AM UTC, comment #1: 

Using what interface, have you tried using double-quotes,...
That report is severely lacking.

Anonymous
Fri 04 Jun 2004 07:36:37 AM UTC, original submission:  


Artifex Maximus <artifex>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by spiralvoice (Posted a comment)
  • -email is unavailable- added by schlumpf_ (Posted a comment)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-07 schlumpf_ StatusReady For Test None
    2007-01-14 schlumpf_ Release2.7.1 2.8.2
    2006-01-02 spiralvoice Severity1 - Wish 4 - Important
    2006-01-02 spiralvoice StatusNeed Info Ready For Test
        Releasee
        Release2-5-21 2.7.1
    2005-11-27 shattered Carbon-Copy- Added shattered
    2005-07-18 beedauchon StatusNone Need Info
    2004-08-10 spiralvoice Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code