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

Dead Properties in FileBackend can't be fetched

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • None
    • Legacy > WebDAV
    • None

    Description

      Hi!

      I refer to the class "ezcWebdavFileBackend", around line 619:
      If you try to fetch a dead property, it can't be found, because the variable $name - which is used to fetch it - doesn't exist:

      ==============================
      public function getProperty( $path, $propertyName, $namespace = 'DAV:' )
      {
      $storage = $this->getPropertyStorage( $path );

      // Handle dead propreties
      if ( $namespace !== 'DAV:' )

      { $properties = $storage->getAllProperties(); return $properties[$namespace][$name]; }

      ==============================

      Replace by return $properties[$namespace][$propertyName]; ???

      Same at the end of the function for the default value in switch statement.

      Regards Kevin (Bigace)

      Attachments

        Activity

          People

            unknown unknown
            kevin p. kevin p.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: