From bf33fbc1ed2889ecef667e209b058d5813e02f9c Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Wed, 30 Jan 2013 12:39:09 +0100 Subject: [PATCH] jira-integration: Check status code against OK FEA: ItEr77S16JiraAndTimConnectorContributionIntegration --- .../java/org/libreplan/web/common/ConfigurationController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java b/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java index c71115963..9d26da041 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java @@ -34,6 +34,7 @@ import java.util.Set; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.Status; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; @@ -283,7 +284,7 @@ public class ConfigurationController extends GenericForwardComposer { Response response = client.get(); - if (response.getStatus() == 200) { + if (response.getStatus() == Status.OK.getStatusCode()) { messages.showMessage(Level.INFO, _("Jira connection was successful")); } else {