Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-909

Jabber bot status doesn't correctly link to projects with spaces in the name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: jabber-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:
      Show 5 results

      Description

      Jabber plugin ver. 0.4-SNAPSHOT

      This may be my jabber client (Spark) doing the linking when it sees a URL, but I
      think we could put the '%20' in for spaces to help create a usable link, in any
      case.

      Example result from '!status' bot command (notice the space in the project names):

      (1:18 PM) hudson: Status of all projects:
      example local: last build: 7: SUCCESS: http://localhost:8080/job/example local/7/
      gestalt-example-core freestyle: last build: 5: SUCCESS:
      http://localhost:8080/job/gestalt-example-core freestyle/5/
      sto: last build: 5: SUCCESS: http://localhost:8080/job/sto/5/

      Jeff

        Attachments

          Activity

          Hide
          tblack tblack added a comment -

          Created an attachment (id=103)
          proposed patch to StatusCommand.java

          Show
          tblack tblack added a comment - Created an attachment (id=103) proposed patch to StatusCommand.java
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Assigning to the jabber component.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Assigning to the jabber component.
          Hide
          dwdyer dwdyer added a comment -

          This is also a problem in the IMPublisher class. Changed both to use the
          encode method of the Util class to escape the spaces. Fixed in SVN revision
          8938 for release 0.5 of the Jabber plugin.

          Show
          dwdyer dwdyer added a comment - This is also a problem in the IMPublisher class. Changed both to use the encode method of the Util class to escape the spaces. Fixed in SVN revision 8938 for release 0.5 of the Jabber plugin.

            People

            • Assignee:
              Unassigned
              Reporter:
              tblack tblack
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: