-
Notifications
You must be signed in to change notification settings - Fork 45
fix subdirectory validation #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix subdirectory validation #3
Conversation
|
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can isSubDirectory(basePath, sourcePath)) ever be false? Since we said FilePath sourcePath = basePath.withSuffix(subdirectory).absolutize();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it could be false if subdirectory contains something like "../non-workspace-dir". I guess that's what the original author wanted to check.
|
🐝 |
|
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be |
|
@reviewbybees done |
|
This pull request has completed our internal processes and we now respectfully request the maintainers of this repository to consider our proposal contained within this pull request for merging. |
|
Any luck that this will get merged in? We are waiting for it upstream and feeling the pain. awslabs#28 |
|
@Suryanarayanan Would you mind merging this PR? Thanks |
|
Does this build the plugin or does another PR need to be made to the awslabs project? |
|
I did create another PR and merged into parent awslabs repo. |
|
Thanks a ton! |
Current implementation doesn't work when builds are running on a slave node: code is checking that slave directory exists on master node, not on slave node. This patch fixes this and enhance logs to help diagnose further issues if any.
@reviewbybees