[JIRA] (JENKINS-60946) Wrong result of function getLocalDir() if "local" equals empty string

3 views
Skip to first unread message

yai73w@rambler.ru (JIRA)

unread,
Feb 3, 2020, 2:43:03 AM2/3/20
to jenkinsc...@googlegroups.com
Aleksandr Iarovoi created an issue
 
Jenkins / Bug JENKINS-60946
Wrong result of function getLocalDir() if "local" equals empty string
Issue Type: Bug Bug
Assignee: Ivan Fernandez Calvo
Components: subversion-plugin
Created: 2020-02-03 07:42
Environment: Jenkins ver. 2.190.1
Subversion Plug-in 2.12.2
Priority: Major Major
Reporter: Aleksandr Iarovoi

Current implementation of getLocalDir function

if(local==null)
    return getLastPathComponent(getURL());
return local;

When local == "" the function returns workspace, but checkout occurs in last path component of the URL relative to the workspace root.

Conditions should be if(local==null || local == "")

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kuisathaverat@gmail.com (JIRA)

unread,
Feb 3, 2020, 4:30:02 AM2/3/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages