You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Reamer (via GitHub)" <gi...@apache.org> on 2023/06/28 07:38:35 UTC
[GitHub] [zeppelin] Reamer commented on a diff in pull request #4624: [ZEPPELIN-5934] Check notebook folder permissions before allowing to rename, remove or restore it
Reamer commented on code in PR #4624:
URL: https://github.com/apache/zeppelin/pull/4624#discussion_r1244808864
##########
zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/NoteManager.java:
##########
@@ -376,7 +381,7 @@ private NoteNode getNoteNode(String notePath) throws IOException {
return noteNode;
}
- private Folder getFolder(String folderPath) throws IOException {
+ public Folder getFolder(String folderPath) throws IOException {
Review Comment:
I don't think it's a good idea to give the folder object to the outside. Do you see a way to do the permissions check in the NoteManager class?
Currently there are already some checks in the NoteManager class.
https://github.com/apache/zeppelin/blob/55a614ad16d220842324f425a159cf41612d76f6/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/NoteManager.java#L230-L232
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@zeppelin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org