openvidu-server: fix empty RecordingProperty "name"

pull/621/head
pabloFuente 2021-04-09 18:28:10 +02:00
parent e325f9956d
commit 95a2c4c58d
1 changed files with 1 additions and 1 deletions

View File

@ -973,7 +973,7 @@ public class SessionRestController {
throw new Exception("\"session\" parameter is mandatory");
}
if (nameParam != null) {
if (nameParam != null && !nameParam.isEmpty()) {
if (!sessionManager.formatChecker.isValidRecordingName(nameParam)) {
throw new Exception("Parameter 'name' is wrong. Must be an alphanumeric string [a-zA-Z0-9_-]+");
}