You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@zeppelin.apache.org by "renechoi (via GitHub)" <gi...@apache.org> on 2026/08/29 15:28:19 UTC

[PR] [ZEPPELIN-6684] Clone the requested note and check writer access [zeppelin]

renechoi opened a new pull request, #5443:
URL: https://github.com/apache/zeppelin/pull/5443

   ### What is this PR for?
   
   `NotebookServer.cloneNote` clones the note the socket is looking at and ignores the `id` the client
   sent, so `CLONE_NOTE` can copy a different note than requested, and without the writer check the
   REST endpoint applies. This uses the requested id and moves the writer check into
   `NotebookService.cloneNote`, so both paths share one rule.
   
   ### What type of PR is it?
   
   Bug Fix
   
   ### What is the Jira issue?
   
   https://issues.apache.org/jira/browse/ZEPPELIN-6684
   
   ### How should this be tested?
   
   Two `NotebookServerTest` cases: `CLONE_NOTE` for a note the socket is not on, and for a source the
   user cannot write. Both fail on master. Both clients already send `id`.
   
   ### Questions:
   
   * Does the license files need to update? No
   * Is there breaking changes? No
   * Does this needs documentation? No
   


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6684] Clone the requested note and check writer access [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #5443:
URL: https://github.com/apache/zeppelin/pull/5443#issuecomment-5604790965

   Merged into master


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6684] Clone the requested note and check writer access [zeppelin]

Posted by "renechoi (via GitHub)" <gi...@apache.org>.
renechoi commented on PR #5443:
URL: https://github.com/apache/zeppelin/pull/5443#issuecomment-5477298720

   Checked the three claims. `isAnonymousAllowed()` is `getShiroPath().equals("")` and `getShiroPath()` returns empty when `conf/shiro.ini` is missing, so the predicates do diverge without authentication. Counting NotebookRestApi myself: 37 endpoints, 14 check in REST only, 14 delegate to a service method that calls checkPermission, 4 check nowhere, and cloneNote would be the only one checking twice.
   
   Adopted. The service now calls hasWritePermission and NotebookRestApi.cloneNote drops its check; both REST clone tests still pass.


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6684] Clone the requested note and check writer access [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee merged PR #5443:
URL: https://github.com/apache/zeppelin/pull/5443


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6684] Clone the requested note and check writer access [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #5443:
URL: https://github.com/apache/zeppelin/pull/5443#issuecomment-5542561859

   Could you rebase this onto master?


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org