#015430: Dead Properties in FileBackend can't be fetched

Description:

Hi,

sorry for the duplicate entry, but by mistake, I assigned the Bug to "ez Publish" instead of "ezComponents".

I don't know how you handle this, but as you didn't reply I thought I'd let you know here as well.

The original bug entry is at:
http://issues.ez.no/IssueView.php?Id=15415&activeItem=1url

Copied text in here as well, see below.

Regards
Kevin


Environment:

ezcomponents-2009.1.1


Steps to Reproduce:

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

No attachments for this issue.


- Comments

Fixed in rev. #10922.

#263131 by Tobias Schlitt on September 14th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Webdav
Affects 2009.1.1 - eZ components 2009.1.1
Fix Versions 2009.2 sprint 3 - eZ components 2009.2 sprint 3
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Kevin P.
Responsible Tobias Schlitt
Status 0 Closed
Resolution Fixed
Created September 4th, 2009
Updated September 14th, 2009
Resolved September 14th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels