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

Incorrect image file path with two slashes (xxxx//success.*) leads to load fail of Persona

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • persona-plugin
    • None
    • MS Windows Server 2003 R2, WebSphere Application Server 6.1.0.25, Hudson ver. 1.381

      In class hudson.plugins.persona.xml.XmlBasedPersona, method findImage(), line 63 stands:

        return imageBasePath+'/'+baseName+ext;
      

      but imageBasePath already has a trailing slash(/), this adds a double slash (//) at the file name and makes the following error happen:

      XmlPersonaFin E Faied to load a persona from file :/D:/HudsonHome/persona/xyz/persona.xml
      java.io.IOException: No image found that matches file :/D:/HudsonHome/persona/xyz//success.*

      Also check line 98:
      throw new IOException("No image found that matches " + imageBase + "/" + baseName + ".*");

            Unassigned Unassigned
            pmadril pmadril
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: