jenkinsci / jenkinsci/subversion-plugin
[JENKINS-60946] Wrong result of function getLocalDir() if "local" equals empty string
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
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 == "")
---
Originally reported by yai73w, imported from: Wrong result of function getLocalDir() if "local" equals empty string
Raw content of original issue
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 == "")
environment
```
Jenkins ver. 2.190.1
Subversion Plug-in 2.12.2
```
Contributor guide
Assessment
This issue has not been assessed yet.