Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-3874

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 0.8.0
    • None
    • zeppelin-server
    • None

    Description

      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.

      Attachments

        Activity

          People

            asnaik Akhil Naik
            asnaik Akhil Naik
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: