Skip to content

wysiwyg-images with problems if media behind a symlink #15

@nhp

Description

@nhp

We encountered a strange behavior with the cms-image-synchronisation because the wrong image_names (pathes) got into the cloudinary_synchronisation table.
After some investigations we found out that Mage::helper('cms/wysiwyg_images')->getStorageRoot() yielded the real_path of the symlinked file.
As that file was written into the filesystem-collection and compared with the database entries the extension never found any synced wysiwyg images and tired to sync everything again, resulting in more and more database entries, because after a sync/already exists it got written with the wrong path (realpath prepended with /media) into the table.
#14 fixes this by using not the real_path but the path Mage::getBaseDir() is returning so the pathes from the database and the ones from the filesystem-collection can be the same again.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions