Skip to content
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

Fixing 'no violations found' file links on Windows (Issue #50) #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pfhorman
Copy link

@pfhorman pfhorman commented Dec 4, 2015

This is the fix as described in issue 50. I ran across the issue on Jenkins running on Windows server. The problem is that all the file keys in the FileModelProxy use the file separator for the system (*nix='/', windows=''), but the String name here comes from getRestOfPath() which prefers the url forward slash (which doesn't work for the Windows keys). To transform the "rest of path" to the true file key, we must convert any '/' in the name to the File.separator for the system.

@pfhorman
Copy link
Author

pfhorman commented Dec 4, 2015

I should mention this is only an issue if your files are located within subfolders and your Jenkins is running on Windows. I confirmed it was still an issue in the latest snapshot and this change fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant