Skip to content

Commit 66abef4

Browse files
authored
FIX: issue when DataSource request is empty
If client requested empty string in DataSource endpoint ClassMethod GetDataSource() return status 200
1 parent 65be5d3 commit 66abef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MDX2JSON/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ ClassMethod GetDataSource(pDataSource As %String)
291291
set st = $$$OK
292292
try {
293293

294-
if ($FIND(pDataSource, ".pivot") = ($LENGTH(pDataSource) + 1)) {
294+
if ($FIND(pDataSource, ".pivot") = ($LENGTH(pDataSource) + 1) && pDataSource '="") {
295295
set st = ..OpenPivotByName(pDataSource, .dataSource)
296296
return:($$$ISERR(st)) st
297297

0 commit comments

Comments
 (0)