You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@livy.apache.org by GitBox <gi...@apache.org> on 2021/12/02 09:47:13 UTC

[GitHub] [incubator-livy] alexanghh commented on a change in pull request #329: [LIVY-868] ACL on livy session listing

alexanghh commented on a change in pull request #329:
URL: https://github.com/apache/incubator-livy/pull/329#discussion_r760922323



##########
File path: server/src/main/scala/org/apache/livy/server/SessionServlet.scala
##########
@@ -72,7 +72,10 @@ abstract class SessionServlet[S <: Session, R <: RecoveryMetadata](
     val from = params.get("from").map(_.toInt).getOrElse(0)
     val size = params.get("size").map(_.toInt).getOrElse(100)
 
-    val sessions = sessionManager.all()
+    val sessions = sessionManager.all().filter(

Review comment:
       I have update the code and changed the withUnprotectedSession to withViewAccessSession to protect access from /sessionId.




-- 
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@livy.apache.org

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