Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26498

Opening content tree when on a location that was removed raises a javascript error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • QA tracked issues
    • 1.5.1, 1.6.0, 1.5.2, 1.6.1, 1.7.0, 1.7.1, 1.8.0, 1.7.2
    • Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 49
      Env: Prod

    Description

      Steps to Reproduce

      1 - Create one Article1 within ezplatform
      2- Create one folder
      3- Add Folder1 as new location for Article1
      4 - view Article 1 in Folder1
      5 - Go to locations and remove ezplatform/Folder1/Article1 location (the location where we currently are. Imho, we shouldn't be allowed to do so, because we are viewing it)
      6 - The location is removed, but we can see in the breadcrumb as if we still were in it
      7 - Open your developer tools
      8 - Now open Content Tree from Discovery Bar

      The following Javascript error appears on developer tools

      TypeError: tree.getNodeById(...) is undefined
      Y.eZ.Plugin.ContentTree<._prepareRecursiveLoad/subscription<()
      _ezcombo:1481
      e.Subscriber.prototype._notify()
      _ezcombo:17
      e.Subscriber.prototype.notify()
      _ezcombo:17
      e.CustomEvent.prototype._notify()
      _ezcombo:16
      e.CustomEvent.prototype._procSubs()
      _ezcombo:16
      u.fireComplex()
      _ezcombo:26
      e.CustomEvent.prototype._fire()
      _ezcombo:16
      E.prototype.fire()
      _ezcombo:17
      <anonymous>
      _ezcombo:1316
      Y.eZ.Plugin.ContentTree<._loadNode/<()
      _ezcombo:1430
      Y.eZ.Plugin.Search<.findLocations/<()
      _ezcombo:2730
      e.bind/<()
      _ezcombo:8
      XmlHttpRequestConnection.prototype.execute/XHR.onreadystatechange()
      _ezcombo:1586
      [Learn More]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: