mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Group folder subscriptions email broken after upgrade to 7.10.18 #3820
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#3820
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @tsmgeek on GitHub (Jul 9, 2019).
Issue
I currently ran an upgrade from 7.8.X to 7.10.18 which mostly went fine.
I have seen an odd thing happening when trying to assign a group mailbox to a user.
When I try and assign a group mailbox to a user i start to get all these messages in the log.
I did some digging and took me to this part of the code.
https://github.com/salesagility/SuiteCRM/blob/7.10.x/modules/Emails/EmailUIAjax.php#L76-L83
When I select a group mailbox, the ID passed to EmailUIAjax:setFolderViewSelection is the
idof the Inbound Email account. But afaik this will not always match thefolder_id, should it not be passinggroup_idorgroupfolder_id?So when I select the one Inbound Email account I see, it does nothing as it never finds a match on the folders table. When I un-select the group account then I have a bigger issue. It posts though a blank array entry to
ieIdShow[]and this in turn runs the SQL query in the above link with blanks and as its a LIKE query all the folders come back which then gets added as subscription folders for the user.It just ends up adding more and more entries into the subscriptions table.
Expected Behavior
Assign group folder subscriptions correctly.
Actual Behavior
Spams the
folder_subscriptionstable and keeps getting bigger and bigger then throws up errors in the log about duplicate folders.Possible Fix
ieIdShowentries.=instead ofLIKEgroup_idorgroupfolder_idwhen assigning inbound email accounts or process this server side.Steps to Reproduce
Your Environment
@pabaillon commented on GitHub (Jul 10, 2019):
Hi,
I have exactely the same problem with the version 7.11.6.
@tsmgeek commented on GitHub (Jul 19, 2019):
Is there any more info required?
@Proziam commented on GitHub (Dec 9, 2019):
I just wanted to mention that I'm experiencing the exact same issue, I've yet to find a working solution myself unfortunately.
@viewpointsa commented on GitHub (Sep 29, 2021):
I have many problem with mail/group email, table
folder_subscriptionshas bad filling, another problem come from tableuser_preferenceswho keep informations about deleted mail account.