Bug 199309 - [IRC] Wrong connection id after click on hyperlink
Summary: [IRC] Wrong connection id after click on hyperlink
Status: CLOSED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.providers (show other bugs)
Version: 1.2.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-08-08 14:56 EDT by Abner Ballardo CLA
Modified: 2008-05-18 19:37 EDT (History)
1 user (show)

See Also:


Attachments
First approach (884 bytes, patch)
2007-08-08 15:23 EDT, Abner Ballardo CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Abner Ballardo CLA 2007-08-08 14:56:37 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Open an editor or chatroom
2. Write: irc://foobar@freenode.net/#eclipse-bugs
3. <Ctrl> + Click
4. IRC Connection Wizard shows as connection id: "modlost@freenode.net/" instead of "irc://foobar@freenode.net/#eclipse-bugs"

More information:

This problems appears only if '#' is used to specify the channel.
Comment 1 Abner Ballardo CLA 2007-08-08 15:23:22 EDT
Created attachment 75702 [details]
First approach

I also notice that "irc://foobar@freenode.net/#channel1,#channel2" is not hyperlinked because URI class [0] throws:

java.net.URISyntaxException: Illegal character in fragment at index 33: irc://modlost@foobar.com/#channel,#foobar

Everything works fine with URI's like:

irc://foobar@freenode.net/channel1
irc://foobar@freenode.net/channel1,channel2

Should IRC Hyperlink support more than one channel with '#'?

[0] org.eclipse.ecf.ui.hyperlink.AbstractURLHyperlinkDetector.detectProtocol()
Comment 2 Scott Lewis CLA 2007-08-08 16:58:16 EDT
(In reply to comment #1)
> Created an attachment (id=75702) [details]
> First approach
> 
> I also notice that "irc://foobar@freenode.net/#channel1,#channel2" is not
> hyperlinked because URI class [0] throws:
> 
> java.net.URISyntaxException: Illegal character in fragment at index 33:
> irc://modlost@foobar.com/#channel,#foobar
> 
> Everything works fine with URI's like:
> 
> irc://foobar@freenode.net/channel1
> irc://foobar@freenode.net/channel1,channel2
> 
> Should IRC Hyperlink support more than one channel with '#'?
> 
> [0] org.eclipse.ecf.ui.hyperlink.AbstractURLHyperlinkDetector.detectProtocol()
> 

I'm of the opinion that it should not.  I would like to stick with well-formed URI syntax if at all possible...and the '#' is a fragment delimiter in URI syntax, so having more than one complicates things.



Comment 3 Abner Ballardo CLA 2007-08-18 00:45:23 EDT
(In reply to comment #2)
> I'm of the opinion that it should not.  I would like to stick with well-formed
> URI syntax if at all possible...and the '#' is a fragment delimiter in URI
> syntax, so having more than one complicates things.

I agree, supporting more than one '#' will be complicated. Well, I think that my first approach patch could add support for just one '#'.

Comment 4 Scott Lewis CLA 2007-08-20 15:39:19 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > I'm of the opinion that it should not.  I would like to stick with well-formed
> > URI syntax if at all possible...and the '#' is a fragment delimiter in URI
> > syntax, so having more than one complicates things.
> 
> I agree, supporting more than one '#' will be complicated. Well, I think that
> my first approach patch could add support for just one '#'.
> 

Does the current attachment to this bug do the desired thing (i.e. support irc://irc.freenode.net/#eclipse-dev?  Or should I wait for another patch before applying, testing, etc.

Thanks.
Comment 5 Abner Ballardo CLA 2007-08-21 01:05:29 EDT
 (In reply to comment #4)
> 
> Does the current attachment to this bug do the desired thing (i.e. support
> irc://irc.freenode.net/#eclipse-dev? 

Yes, it does. You can apply it and test it :)
Comment 6 Scott Lewis CLA 2007-08-21 01:32:24 EDT
Tested, verified, committed after some minor changes.  Added contribution to IP log.  Thanks much Abner.  Please keep them coming.
Comment 7 Scott Lewis CLA 2008-05-18 19:37:46 EDT
closing.