Greg Senia created ZEPPELIN-3309:
------------------------------------

             Summary: Zeppelin Import/Clone doesn't set user in Paragraph 
causing NPE
                 Key: ZEPPELIN-3309
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3309
             Project: Zeppelin
          Issue Type: Bug
          Components: zeppelin-zengine
    Affects Versions: 0.7.1, 0.7.0, 0.8.0, 0.9.0
            Reporter: Greg Senia
            Assignee: Greg Senia
             Fix For: 0.9.0
         Attachments: clone_failure.log.txt, clone_works.log.txt, 
import_failure.log.txt, import_works.log.txt, orig_vs_clone.nofix.txt

When performing testing with Zeppelin 0.9.0/0.8.0 with importing notebooks 
and/or cloning notebooks noticed NPE's being thrown.  After performing some 
debug for the past few days determined the cause is the fact that "user" 
attribute is not being populated and "user" is used in many places including 
binding interpreters and unbinding interpreters. The only workaround is to run 
all the paragraphs which go and update the notebooks paragraph json sections. I 
fixed this by during the Note.addCloneParagraph by passing AuthenticationInfo 
in so that "user" is set. 

 

I've attached log showing my debug statements I added both with and without the 
fix and diff's of the notebook jsons missing the "user" attribute during the 
clone/import.

 

Example of missing user attribute on clone:

 

--- /tmp/2D932HMYZ.orig.json    2018-03-07 18:50:26.105410990 -0500

+++ /tmp/2DAVJSE2G.clone.json   2018-03-07 18:50:49.953606890 -0500

@@ -2,12 +2,16 @@

   "paragraphs": [

     {

       "text": "%sql\nshow tables in processed_opendata_samples",

-      "user": "gss2002",

-      "dateUpdated": "2018-03-07 14:53:18.449",

+      "dateUpdated": "2018-03-07 18:47:49.949",

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to