Hi,

I wondering about basic functions of Zeppelin.

I have found something weird (IMHO), but... in fact, I think I may miss
something important about using Zeppelin.So this email.

Here are the permissions for the single notebook I have defined.

Owners: user1 admin
Writers: admin
Runners: user2
Readers: user3

With shiro.ini file defined as follows:
...
[users]
admin = password, admin
user1 = password1, role1, role2
user2 = password2, role2
user3 = password3, role3
user4 = password4, role3

[roles]
role1 = *
role2 = *
role3 = *
admin = *
...


No other change

I use Zeppelin 0.8.1 with JDK 8 (+/- the latest one).


*** what I expected ?
- owner should be able to read, write and run the notebook for every
display mode ('default', 'simple' and 'report')
- runner (user2) should be able to read and run the notebook with only 2
display modes ('simple' and 'report') and NO access to default mode as it's
for writers only.


*** user1 (= owner)

OK = when connected as user1, I am able to read, write and run the notebook
for every display mode


*** user2 (= runner)

KO = when connected a user2, I see the notebook opened but... in default
mode, then a modal window says me that user2 has no 'writer' permission and
I get kicked out of the notebook.


QUESTIONING_1 :
    I expected user2 to be routed towards 'simple' or 'report' mode, as
user2 is a runner, not a writer.
    But user2 got routed towards 'default' mode with form for writing
paragraphs and modifying existing ones.

    Is it normal ?
    Why the notebook is not displayed in 'simple' or 'report' mode as user2
is only a runner (not a writer) ?


QUESTIONING_2 :
    I think I know why the modal window (user2 has not 'writer' permission)
appears and why I am kicked out as user2
    Indeed, cursor is placed inside a paragraph in 'default' mode. Then, I
think Zeppelin UI just verifies the according 'writer' permission
associated.
    Without it, user2 is kicked out.

    Again: I expected instead that user2 would see the notebook in 'simple'
or 'report' mode only.
    Then, no paragraph to modify and then, no need to check 'writer'
permission.


QUESTION:
    Is the Zeppelin behavior buggy for user2  ?
    If so, what is the last version for which Zeppelin is working correctly
?

Thanks.

Regards,
Dominique

Reply via email to