Bug 307587 - ed2k link doesn't work
Summary: ed2k link doesn't work
Status: RESOLVED DUPLICATE of bug 248682
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.8.4
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-29 19:36 UTC by Luca Niverini
Modified: 2012-10-05 14:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Niverini 2012-09-29 19:36:15 UTC
After setting konqueror to handle ed2k links (I created ed2k.protocol in ~/.kde/share/kde4/services/) these still do not work.
After some testing I found the problem to be the pipe "|" in the link.
I created an html page with this:

<a href="ed2k://|file|name.txt|1000000|000000000000000000000000000000|/">test</a><br/>
<a href="ed2k:///|file|name.txt|1000000|000000000000000000000000000000|/">test</a><br/>
<a href="ed2k://test/|file|name.txt|1000000|000000000000000000000000000000|/">test</a><br/>

where the first is a valid ed2k, the others are modified by adding an extra / and an extra /test

When I click the first link nothing happens, when I click the second or the third the ed2k manager is called (but it tells that the link is not valid).

The problem is with the | that are in the part than would be the domain name in a regular http link.

I know that this char is not allowed in domain names, but the way konqueror handles them breaks ed2k links.
The same problem occur with rekonq.

Reproducible: Always

Steps to Reproduce:
1. Set up konqueror to handle ed2k links
2. Click on a ed2k link

Actual Results:  
nothing appens

Expected Results:  
ed2k link manager called
Comment 1 Dawit Alemayehu 2012-10-05 00:46:55 UTC
Can you provide the ed2k.protocol file you created to test this ?

Also I do not see how the ed2k links you provided above will work without them being properly encoded since the "|" character are illegal in a URL according to RFC 2396 and 3986.
Comment 2 Jekyll Wu 2012-10-05 10:39:05 UTC
should be a duplicate of bug 248682
Comment 3 Dawit Alemayehu 2012-10-05 14:10:16 UTC

*** This bug has been marked as a duplicate of bug 248682 ***