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

[JENKINS-37184] [JENKINS-5124] Log the exception that is thrown if Jenksins can't get info() on a subversion repository using a tunnel #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

openbrian
Copy link

Log the exception that is thrown if Jenksins can't get info() on a subversion repository using a tunnel. When the repository factory creates the repository, set the tunnel provider based on default svn options.

Log the exception that is thrown if Jenksins can't get info() on a subversion repository using a tunnel.  When the repository factory creates the repository, set the tunnel provider based on default svn options.
@@ -255,6 +256,7 @@ private boolean isSVNRepositoryProjectRoot(SVNRepository repo) {
return true;
}
} catch (SVNException e) {
LOGGER.log(Level.SEVERE, "An SVN exception occurred", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message does not provide any value

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's doesn't? It tells a sysadmin that they have a misconfigured repository line when they specify svn+foo://domain/path and foo is not a configured tunnel in .subversion/config. It's much better then throwing that exception on the floor. It's the only way I would know how to fix the bug.

Removed extra spaces.
@openbrian
Copy link
Author

I believe this patch is ready to be merged. If not, please provide feedback.

@openbrian
Copy link
Author

Any updates on this PR?

@jglick jglick changed the title Fixes JENKINS-37184 and JENKINS-5124 [JENKINS-37184] [JENKINS-5124] Log the exception that is thrown if Jenksins can't get info() on a subversion repository using a tunnel Jan 30, 2017
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge conflicts

@@ -179,6 +179,7 @@ public DescriptorImpl getDescriptor() {
SVNURL repoURL = SVNURL.parseURIDecoded(getTagsDir());

SVNRepository repo = SVNRepositoryFactory.create(repoURL);
repo.setTunnelProvider(SubversionSCM.createDefaultSVNOptions());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not about logging, is it?

@openbrian
Copy link
Author

Well it's been about a year, so I don't remember. I'll review and update the ticket.

I can tell you, the efect of this omission is, under some conditions, the list of known braches and tags will not populate a drop down select box. I believe it was like Build Parameterized or some form like that.

The root cause of the issue was not being logged. We didn't know what to fix. The feature was unusable.

I don't recall what the root cause was, but I feel it was related to the fact that we use ssh+svn and our ssh uses Kerberos for authentication.

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