bug: deleteFromPlatforms() does not decrypt credentials before passing to service plugins #226
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
CrossPostDispatcher::deleteFromPlatforms()at line 618 reads credentials from the database as raw JSON:But credentials are stored encrypted via
CredentialHelper::encrypt(). Thedispatch()andQueueProcessor::processQueue()methods correctly useCredentialHelper::decrypt(), butdeleteFromPlatforms()does not.This means the "Delete from platforms on unpublish" feature silently fails for all services with encrypted credentials -- the service plugin receives empty or garbage credential arrays and returns a credential validation error.
Fix
Replace line 618:
With:
Impact
source/packages/com_mokosuitecross/src/Helper/CrossPostDispatcher.phpBranch created:
feature/226-bug-deletefromplatforms-does-not-decrypt