Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-3655] Add missing roles information to api/notebook/job/ method #3093

Closed
wants to merge 4 commits into from

Conversation

oxygen311
Copy link

What is this PR for?

Fix bugs with private access interpreter launched with REST by adding missing roles information to AuthenticationInfo.

What type of PR is it?

Bug Fix

What is the Jira issue?

ZEPPELIN-3655

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@oxygen311 oxygen311 changed the title [ZEPPELIN-3655] Add missing roles information to /notebook/api method [ZEPPELIN-3655] Add missing roles information to api/notebook/job/ method Jul 24, 2018
@zjffdu
Copy link
Contributor

zjffdu commented Jul 24, 2018

Can you add unit test ?

@oxygen311
Copy link
Author

oxygen311 commented Jul 24, 2018

@zjffdu
It's don't easy to check this bug with a unit test. Even in Paragraph is not running because of "user has no permission for interpreter" response in rest api would be "OK"

@oxygen311 oxygen311 closed this Jul 25, 2018
@oxygen311 oxygen311 reopened this Jul 25, 2018
@zjffdu
Copy link
Contributor

zjffdu commented Jul 26, 2018

@oxygen311 Could you resolve conflict ?

bin/common.sh Outdated
@@ -16,6 +16,10 @@
# limitations under the License.
#

# -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
# ZEPPELIN_JAVA_OPTS
export ZEPPELIN_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove it

oxygen311 added 2 commits July 26, 2018 11:54
…ELIN-3655

# Conflicts:
#	zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java
@oxygen311
Copy link
Author

@zjffdu done

@zjffdu
Copy link
Contributor

zjffdu commented Jul 26, 2018

It looks like all the public api in NotebookRestApi miss the role info. Do you see any issue when roles is missing ? I think it is better to set roles properly in some kind of Filter.

@oxygen311
Copy link
Author

@zjffdu
Also this bug may occur in run paragraph methods, it's also fixed now.
Other methods don't miss role info because they don't need to pass it farther. And checkIfUserCanWrite and checkIfUserCanWrite which is used in most rest api calls are take into roles information.

@oxygen311 oxygen311 closed this Jul 26, 2018
@oxygen311 oxygen311 reopened this Jul 26, 2018
@zjffdu
Copy link
Contributor

zjffdu commented Jul 27, 2018

Thanks @oxygen311 LGTM

@asfgit asfgit closed this in 858cfcd Jul 31, 2018
mckartha pushed a commit to syntechdev/zeppelin that referenced this pull request Aug 9, 2018
…thod

### What is this PR for?
Fix bugs with private access interpreter launched with REST by adding missing roles information to `AuthenticationInfo`.

### What type of PR is it?
Bug Fix

### What is the Jira issue?
[ZEPPELIN-3655](https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-3655)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: oxygen311 <alex39-09@mail.ru>

Closes apache#3093 from oxygen311/ZEPPELIN-3655 and squashes the following commits:

aa51ca3 [oxygen311] Add roles info to run paragraph method
407b104 [oxygen311] Change
0444284 [oxygen311] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-3655
182dadc [oxygen311] Fix roles info
asfgit pushed a commit that referenced this pull request Sep 18, 2018
…thod

Fix bugs with private access interpreter launched with REST by adding missing roles information to `AuthenticationInfo`.

Bug Fix

[ZEPPELIN-3655](https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-3655)

* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: oxygen311 <alex39-09@mail.ru>

Closes #3093 from oxygen311/ZEPPELIN-3655 and squashes the following commits:

aa51ca3 [oxygen311] Add roles info to run paragraph method
407b104 [oxygen311] Change
0444284 [oxygen311] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-3655
182dadc [oxygen311] Fix roles info

(cherry picked from commit 858cfcd)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
@Savalek Savalek deleted the ZEPPELIN-3655 branch July 5, 2019 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants