aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: & in file name causes it to not be found  (Read 3277 times)

nsd20463

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
& in file name causes it to not be found
« on: September 30, 2004, 12:56:24 PM »

Once a file with & in its name completely downloaded and moved to Incoming/,
amule can no longer find it. It appears that amule is duplicating the & (to make "&&") when trying to open the file.

On the amule log I see errors like:

09/29/2004 07:52:16 PM: Can't open file '/home/nsd20463/.aMule/Incoming/copy && paste.txt'

when the file is called "copy & paste.txt" with one &

-N
Logged
-nsd

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: & in file name causes it to not be found
« Reply #1 on: September 30, 2004, 01:40:38 PM »

That might be a bug coming from eMule. IIRC, on eMule, a file with an ampersand character was never shown, but instead, it made the next character become underlined (as if it was a GUI item)... allthough aMule's bug is much more critical as you show it :-S

If the file is never into Incoming, you can be sure it is on Temp (with it's old xxx.part name). Anyway, as of what I read in the log you paste, it seems like it cannot open it once it's been copied, so, please use the console to cd into ~/.aMule/Incoming and check if it's there and with which name. It could happen that it's the Preview code that has the wrong code and that's why it cannot open the file, allthough it's there with the right name...

Please report. Serious bug
Greetings!
Logged

nsd20463

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: & in file name causes it to not be found
« Reply #2 on: October 02, 2004, 11:01:38 AM »

The file is in Incoming/ with one &.

~> ls .aMule/Incoming
cut & paste.txt

I wasn't trying to preview the file when amule emitted the log messages. I was trying to serve it up to someone else. In other words, it's the code that opens a file for serving that it not right.

-N
Logged
-nsd

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: & in file name causes it to not be found
« Reply #3 on: October 02, 2004, 11:11:12 AM »

Ok, two things.
The "&&" is a bug in the logging code where we replace the "&"s with "&&" a bit too early. We have to do that, since otherwise they gets shown as underscores on the statusbar, but it shouldn't be done until after we've added it to the logview. ;)

Secondly, I just tested a file with the same name as what you said, and it seems to work fine. Got hashed and added to shared.

So can you check permissions for the file and repport back?
Logged