mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed some wrong logic of getInterpreterInstanceKey
This commit is contained in:
parent
cee39f40be
commit
ad80951c5b
1 changed files with 4 additions and 5 deletions
|
|
@ -1144,11 +1144,10 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
String key;
|
||||
if (option.isExistingProcess()) {
|
||||
key = Constants.EXISTING_PROCESS;
|
||||
} else if (!(shiroEnabled && option.perUserShared()) || !option.perNoteShared()) {
|
||||
if (shiroEnabled) {
|
||||
key = (!option.perUserShared() ? user : "") + ":" + (!option.perNoteShared() ? noteId : "");
|
||||
} else {
|
||||
key = (!option.perNoteShared() ? noteId : "");
|
||||
} else if (!option.perNoteShared()) {
|
||||
key = noteId;
|
||||
if (shiroEnabled && !option.perUserShared()) {
|
||||
key = user + ":" + key;
|
||||
}
|
||||
} else {
|
||||
key = SHARED_SESSION;
|
||||
|
|
|
|||
Loading…
Reference in a new issue