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

Fetching a non existing node by path results in a warning while fetching by id doesn't

    XMLWordPrintable

Details

    Description

      Hi,

      when i fetch a non existing node by path like

      fetch('content', 'node', hash('node_path', 'Media/not/existing/node'))
      

      it get a warning while fetching a non existing node by id like

      fetch('content', 'node', hash('node_id', 99999))
      

      returns just false() without any errors/warnings. Its because the function eZURLAliasML::fetchNodeIDByPath in eZContentFunctionCollection::fetchContentNode returns false and this is passed unchecked to eZContentObjectTreeNode::fetch.

      Steps to reproduce

      fetch('content', 'node', hash('node_path', 'Media/not/existing/node'))
      fetch('content', 'node', hash('node_id', 99999))

      Attachments

        Activity

          People

            ls ls
            sblank sblank
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: