You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/11/18 01:52:26 UTC

[zeppelin] branch branch-0.9 updated: [ZEPPELIN-5133]. Warning message of SessionRestApi for empty path annotation

This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new e8f9d75  [ZEPPELIN-5133]. Warning message of SessionRestApi for empty path annotation
e8f9d75 is described below

commit e8f9d75e5870733f7b0977a8c747c248294e3c86
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Mon Nov 16 14:51:14 2020 +0800

    [ZEPPELIN-5133]. Warning message of SessionRestApi for empty path annotation
    
    ### What is this PR for?
    
    Very trivial PR to fix the issue of warning message of SessionRestApi for empty path annotation
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5133
    
    ### How should this be tested?
    * Manually tested. (warning message is gone after this PR)
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? NO
    * Does this needs documentation? No
    
    Author: Jeff Zhang <zj...@apache.org>
    
    Closes #3973 from zjffdu/ZEPPELIN-5133 and squashes the following commits:
    
    518e5fed9 [Jeff Zhang] [ZEPPELIN-5133]. Warning message of SessionRestApi for empty path annotation
    
    (cherry picked from commit 22d8d22d3d8f4a6ae3e16e8d4f2698c03519fc66)
    Signed-off-by: Jeff Zhang <zj...@apache.org>
---
 .../src/main/java/org/apache/zeppelin/rest/SessionRestApi.java          | 2 --
 1 file changed, 2 deletions(-)

diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/SessionRestApi.java b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/SessionRestApi.java
index 5306d68..e668d42 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/SessionRestApi.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/SessionRestApi.java
@@ -66,7 +66,6 @@ public class SessionRestApi {
    * @throws Exception
    */
   @GET
-  @Path("/")
   public Response listSessions(@QueryParam("interpreter") String interpreter) throws Exception {
     if (StringUtils.isBlank(interpreter)) {
       LOGGER.info("List all sessions of all interpreters");
@@ -90,7 +89,6 @@ public class SessionRestApi {
    * @throws Exception
    */
   @POST
-  @Path("/")
   public Response createSession(@QueryParam("interpreter") String interpreter) throws Exception {
     LOGGER.info("Create new session for interpreter: {}", interpreter);
     SessionInfo sessionInfo = sessionManagerService.createSession(interpreter);