summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-08 00:48:19 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-08 00:48:19 -0400
commit4d537b9d7dce193870628885a1122be7c81cec24 (patch)
tree37161b245669305cf80e6eac4b23d789c5e38bb2
parenta27e682a6414459ea065147d5de354ceff056535 (diff)
downloadgitblit-4d537b9d7dce193870628885a1122be7c81cec24.tar.gz
gitblit-4d537b9d7dce193870628885a1122be7c81cec24.zip
Fix failure of RedisTicketService to determine hasTicket
-rw-r--r--releases.moxie1
-rw-r--r--src/main/java/com/gitblit/tickets/RedisTicketService.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/releases.moxie b/releases.moxie
index e9a92c22..f25ad514 100644
--- a/releases.moxie
+++ b/releases.moxie
@@ -14,6 +14,7 @@ r22: {
- Fix intermittent NPE in determining commit date in RefModel (issue-401)
- Fix closing ticket on push by parsing commit messages for closes|fixes (issue-404)
- Ensure the Lucene ticket index is updated on repository deletion.
+ - Fixed failure to properly determine hasTicket in RedisTicketService
changes:
- Specify the --dailyLogFile option for the Ubuntu and CentOS service scripts (issue-348)
- Improve logging for missing LDAP uid attribute when synchronizing (issue-394)
diff --git a/src/main/java/com/gitblit/tickets/RedisTicketService.java b/src/main/java/com/gitblit/tickets/RedisTicketService.java
index bc639da7..58f7243c 100644
--- a/src/main/java/com/gitblit/tickets/RedisTicketService.java
+++ b/src/main/java/com/gitblit/tickets/RedisTicketService.java
@@ -168,7 +168,7 @@ public class RedisTicketService extends ITicketService {
}
try {
Boolean exists = jedis.exists(key(repository, KeyType.journal, ticketId));
- return exists != null && !exists;
+ return exists != null && exists;
} catch (JedisException e) {
log.error("failed to check hasTicket from Redis @ " + getUrl(), e);
pool.returnBrokenResource(jedis);