aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Bad ed2k link parsing (invalid size)  (Read 2537 times)

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Bad ed2k link parsing (invalid size)
« on: November 17, 2006, 10:22:11 AM »

Hi guys I'm running amuled SVN 20061103 and there is a serious problem in e2dk link management. I have some linsk that would not be imported for "invalid size". They are files < 400Mb long that are imported correctly with emule. I can post you some examples if you want. Bye!!!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Bad ed2k link parsing (invalid size)
« Reply #1 on: November 17, 2006, 10:26:46 AM »

If the files are legally harmless, then please post some.
Logged

Menion

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 95
  • Winter is coming...
Re: Bad ed2k link parsing (invalid size)
« Reply #2 on: November 17, 2006, 10:34:00 AM »

No, they aren't legal  :D I can post some for you in PM. BUT I found that if I import the link in eMule and THEN copy link from eMule tu aMuleGUI (or aMuleWeb) It works ?( !!!!!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Bad ed2k link parsing (invalid size)
« Reply #3 on: November 17, 2006, 07:57:46 PM »

Yes, please send me the links via PM, I'm interested in the issue.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Bad ed2k link parsing (invalid size)
« Reply #4 on: November 18, 2006, 01:41:37 PM »

Minion sent me some links and pointed the errors out by himself:

When there's a slash in the filename (illegal character) and the link is being processed wrong.
ed2k://|file|name/name|1|d41d8cd98f00b204e9800998ecf8427e|/
The result with aMule is:
name: name
size: name -> thus invalid file size
hash: 1

Without slash everything is being processed fine.
ed2k://|file|namename|1|d41d8cd98f00b204e9800998ecf8427e|/

Through developing amule-emc I know that there's wxToken to be blamed.
Maybe one should filter all slashes except the last character, because this is the only place where it is supposed to be.
Logged