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 {