Akhil S Naik created ZEPPELIN-3874:
--------------------------------------

             Summary: Notebook's not loading if one of the notename contains '/'
                 Key: ZEPPELIN-3874
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3874
             Project: Zeppelin
          Issue Type: Bug
          Components: zeppelin-server
    Affects Versions: 0.8.0
            Reporter: Akhil S Naik
            Assignee: Akhil S Naik
         Attachments: Screen Shot 2018-11-21 at 5.13.24 PM.png

Notebook's not loading if one of the notename contains '/'


It will have a exception : 

TypeError: Cannot read property 'length' of null
    at e (noteList.datafactory.js:49)
    at noteList.datafactory.js:41
    at jb (vendor.79cda6d16f3c8488.js:215)
    at Function.<anonymous> (vendor.79cda6d16f3c8488.js:215)
    at Object.setNotes (noteList.datafactory.js:36)
    at navbar.controller.js:200
    at n.$broadcast (vendor.79cda6d16f3c8488.js:34)
    at n.<anonymous> (websocketEvents.factory.js:65)
    at b (vendor.79cda6d16f3c8488.js:64)
    at n._onMessageHandler (vendor.79cda6d16f3c8488.js:64)

Workaround : Rename the note  with name '/'

Root cause :

 var nodes = noteName.match(/([^\/][^\/]*)/g);

when we are trying to match the parent and child notes with regex expression in 
javascript its failing with no match as the name itself is '/'


attached screenshot of the issue.




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

Reply via email to