Skip to content

Commit

Permalink
Fix API calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
GhaziTriki committed Nov 2, 2018
1 parent 2ca7481 commit a52e907
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Expand Up @@ -199,7 +199,7 @@ public static Map<String, String> processMetaParam(Map<String, String> params) {
// Need to lowercase to maintain backward compatibility with
// 0.81
String metaName = removeMetaString(entry.getKey()).toLowerCase();
metas.put(metaName, params.get(entry.getValue()));
metas.put(metaName, entry.getValue());
}
}

Expand Down
Expand Up @@ -261,7 +261,6 @@ public Boolean isBreakout() {
return isBreakout;
}


public void setHaveRecordingMarks(boolean marks) {
haveRecordingMarks = marks;
}
Expand Down
Expand Up @@ -24,21 +24,23 @@ public void stop() {
public void start() {
// Set the name of this client to be able to distinguish when doing
// CLIENT LIST on redis-cli
redisPool = new JedisPool(new GenericObjectPoolConfig(), host, port, Protocol.DEFAULT_TIMEOUT, null,
redisPool = new JedisPool(new GenericObjectPoolConfig<Object>(), host, port, Protocol.DEFAULT_TIMEOUT, null,
Protocol.DEFAULT_DATABASE, "BbbRed5AppsPub");
}

public void recordMeetingInfo(String meetingId, Map<String, String> info) {
Jedis jedis = redisPool.getResource();
try {
for (String key : info.keySet()) {
log.debug("Storing metadata {} = {}", key, info.get(key));
if (log.isDebugEnabled()) {
for (Map.Entry<String,String> entry : info.entrySet()) {
log.debug("Storing metadata {} = {}", entry.getKey(), entry.getValue());
}
}

log.debug("Saving metadata in {}", meetingId);
jedis.hmset("meeting:info:" + meetingId, info);
} catch (Exception e) {
log.warn("Cannot record the info meeting: {}" + meetingId, e);
log.warn("Cannot record the info meeting: {}", meetingId, e);
} finally {
jedis.close();
}
Expand All @@ -50,7 +52,7 @@ public void recordBreakoutInfo(String meetingId, Map<String, String> breakoutInf
log.debug("Saving breakout metadata in {}", meetingId);
jedis.hmset("meeting:breakout:" + meetingId, breakoutInfo);
} catch (Exception e) {
log.warn("Cannot record the info meeting:" + meetingId, e);
log.warn("Cannot record the info meeting: {}", meetingId, e);
} finally {
jedis.close();
}
Expand Down
Expand Up @@ -2009,7 +2009,7 @@ class ApiController {
def filenameExt = FilenameUtils.getExtension(presFilename);
String presentationDir = presentationService.getPresentationDir()
def presId = Util.generatePresentationId(presFilename)
File uploadDir = Util.createPresentationDirectory(meetingId, presentationDir, presId)
File uploadDir = presDownloadService.createPresentationDirectory(meetingId, presentationDir, presId)
if (uploadDir != null) {
def newFilename = Util.createNewFilename(presId, filenameExt)
def pres = new File(uploadDir.absolutePath + File.separatorChar + newFilename);
Expand Down

0 comments on commit a52e907

Please sign in to comment.