Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1524

camel-irc URI parsing is flawed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1, 2.0-M2
    • documentation
    • None

    Description

      the example URI for the camel-irc component (see http://camel.apache.org/irc.html) does not work. Further, the current URI parsing code is flawed and subject to NPE's.

      In IrcConfiguration.configure(URI uri) (see https://svn.apache.org/repos/asf/camel/branches/camel-1.x/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java) the code attempts to parse a channel name as a path. Because the '#' char is a fragment marker in a URI, the path (in the documented example) is zero length.

      The following URI works with the current code implementation (note the required '//' and html-escaped '#' char):

      irc://nick@server.org/%23channel

      Attachments

        1. patch.txt
          2 kB
          Stanley J. Lewis

        Activity

          People

            hadrian Hadrian Zbarcea
            darren.davison Darren Davison
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: