aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
diff options
context:
space:
mode:
authorNelson, Thomas (arthurdent3) <nelson24@att.com>2019-05-28 04:18:08 +0000
committerNelson, Thomas (arthurdent3) <nelson24@att.com>2019-05-28 04:18:08 +0000
commit9943f1e32b2db7f40ec77243ea235c889eded8f9 (patch)
treef9b69bb030e63c17d6472bd654c8a9275a2072d7 /src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
parent641255c612fae09ff8840124eb7dcf5046083dd0 (diff)
Bug Fix for Empty Body.
Updated a few missing checks for this. Update api name, add properties to be more forgiving for lock type Change-Id: I4743110bdc654e4346052bd0e045270fd4925417 Issue-ID: MUSIC-398 Signed-off-by: Nelson, Thomas (arthurdent3) <nelson24@att.com>
Diffstat (limited to 'src/main/java/org/onap/music/rest/RestMusicLocksAPI.java')
-rw-r--r--src/main/java/org/onap/music/rest/RestMusicLocksAPI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
index e27c08ee..079fe97c 100644
--- a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
+++ b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
@@ -263,7 +263,7 @@ public class RestMusicLocksAPI {
}
@GET
- @Path("/getCurrentLockHolders/{lockname}")
+ @Path("/holders/{lockname}")
@ApiOperation(value = "Get Lock Holders",
notes = "Gets the current Lock Holders",
response = Map.class)
@@ -335,7 +335,7 @@ public class RestMusicLocksAPI {
String who = MusicCore.whoseTurnIsIt(lockName);
ResultType status = ResultType.SUCCESS;
String error = "";
- if ( who == null ) {
+ if ( who == null ) {
status = ResultType.FAILURE;
error = "There was a problem getting the lock holder";
logger.error(EELFLoggerDelegate.errorLogger,"There was a problem getting the lock holder", AppMessages.INCORRECTDATA ,ErrorSeverity.CRITICAL, ErrorTypes.GENERALSERVICEERROR);