From 8f6e672ffe19c439aadc07b64e36ae4b83e78f1e Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 15 Jul 2013 08:09:20 -0400 Subject: [PATCH] Fixed url panel failure when there are no repository urls (issue 269) --- src/main/java/com/gitblit/RedmineUserService.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/RedmineUserService.java b/src/main/java/com/gitblit/RedmineUserService.java index 9d571e3..d677e3e 100644 --- a/src/main/java/com/gitblit/RedmineUserService.java +++ b/src/main/java/com/gitblit/RedmineUserService.java @@ -135,7 +135,7 @@ user.accountType = getAccountType(); user.displayName = current.user.firstname + " " + current.user.lastname; user.emailAddress = current.user.mail; - user.password = ExternalAccount; + user.password = Constants.EXTERNAL_ACCOUNT; if (!StringUtils.isEmpty(current.user.login)) { // only admin users can get login name // evidently this is an undocumented behavior of Redmine @@ -158,7 +158,7 @@ String url = this.settings.getString(Keys.realm.redmine.url, ""); if (!url.endsWith("/")) { - url.concat("/"); + url = url.concat("/"); } HttpURLConnection http; if (username == null) { -- Gitblit v1.9.1