Skip to content

Commit 4d0b0be

Browse files
Trim trailing slash off of URL for validation
1 parent d35cb15 commit 4d0b0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/argusnotifier/ArgusNotifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public FormValidation doTestConnection(@QueryParameter("argusUrl") String argusU
165165
@QueryParameter("credentialsId") String credentialsId) {
166166
if (argusUrl == null || argusUrl.trim().isEmpty() || credentialsId == null || credentialsId.trim().isEmpty()) {
167167
return FormValidation.error("Please fill in the connection details.");
168-
} else if (ArgusDataSender.testConnection(argusUrl, getCredentialsById(credentialsId))) {
168+
} else if (ArgusDataSender.testConnection(stripTrailingSlash(argusUrl), getCredentialsById(credentialsId))) {
169169
return FormValidation.ok("Success!");
170170
} else {
171171
return FormValidation.error(

0 commit comments

Comments
 (0)