Editing Distributio…
 
Notifications
Clear all

Editing Distribution Group Issue

8 Posts
3 Users
0 Reactions
3,775 Views
0
Topic starter

Hi,

I have come across another error whilst testing CloudPanel. This time it’s to do with Distribution Groups. I can add a group without issue, and ECP, confirms that the group has been created and that the members have been added.

When i then return to CloudPanel to Modify > Edit the group, everything loads as i expect it to except for the Members section. It is greyed out whilst loading/doing its query, and then i get a not particularly helpful error popup as below. I cannot see anything obvious in the logs, but not 100% sure where i should be looking just yet.

Error Message
also at

If i then try to submit any changes, i get the following;

Error Message2
also at

Happy to help with any further info.

CloudPanel 3.1.0.805
Windows Server 2012 R2
Exchange 2016

8 Answers
0

Are you able to add users and enable mailboxes without any errors?
Also in the CloudPanel log file in the Logs directory should give some more information when this error occurs. Can you check there?

0
Topic starter

Hi Jacob,

Yes, we can add users and enable them without issue, the system is in use and working fine with a spare domain for testing with. The only issue we have is as above.

I’ve provided the relevant output of the log files that were updated when the Modify > Edit link was clicked on a Distribution Group, any peronally identifiable info has been replaced by <REDACTED>.

The content of CloudPanel log is as follows;

2015-11-01 17:17:56,991 ::: [9] DEBUG ::: CloudPanel.Code.ValidateClaims -- Validating permissions for company code IMP and role ViewGroup
2015-11-01 17:17:56,991 ::: [9] DEBUG ::: CloudPanel.Code.ValidateClaims -- Checking if user is a super admin
2015-11-01 17:17:57,022 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Retrieving distribution group 919ca503-685a-4a5d-8ccf-e05519269e4d from the database
2015-11-01 17:17:57,022 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Retrieving distribution group from Exchange
2015-11-01 17:17:59,760 ::: [9] DEBUG ::: CloudPanel.Modules.UsersModule -- Getting mailbox users for IMP
2015-11-01 17:17:59,772 ::: [9] DEBUG ::: CloudPanel.Modules.UsersModule -- Found a total of 2 mailbox users
2015-11-01 17:17:59,772 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Retrieving Exchange groups for IMP
2015-11-01 17:17:59,819 ::: [9] DEBUG ::: CloudPanel.Modules.DomainsModule -- Getting company accepted domains for IMP
2015-11-01 17:18:00,116 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Getting mailbox users for IMP
2015-11-01 17:18:00,163 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Getting distribution groups for IMP
2015-11-01 17:18:00,178 ::: [9] DEBUG ::: CloudPanel.Modules.GroupsModule -- Getting contacts for IMP
2015-11-01 17:18:00,210 ::: [9] DEBUG ::: CloudPanel.Modules.BrandingModule -- Processing branding request for <REDACTED>
2015-11-01 17:18:00,225 ::: [9] DEBUG ::: CloudPanel.CPStaticHelpers -- Checking if company IMP is enabled for Exchange

ResponseHandlers log is as follows;

2015-11-01 17:17:59,006 ::: [9] DEBUG ::: ResponseHandlers -- Response Handler status code OK
2015-11-01 17:18:00,382 ::: [9] DEBUG ::: ResponseHandlers -- Response Handler status code NotFound

Exchange log is as follows;

2015-11-01 17:17:58,163 ::: [9] DEBUG ::: Exchange -- Retrieving distribution group CN=<REDACTED>,OU=Exchange,OU=IMP,OU=VON,OU=Hosting,DC=<REDACTED>,DC=local
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Found group CN=<REDACTED>,OU=Exchange,OU=IMP,OU=VON,OU=Hosting,DC=<REDACTED>,DC=local. Retrieving values...
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Checking if authentication is required to send to the group
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Getting the join restriction
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Getting the departure restriction
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Getting moderation notifications
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Getting the ManagedBy list
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Checking the AcceptMessagesOnlyFromSendersOrMembers values
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Checking the ModeratedBy values
2015-11-01 17:17:58,507 ::: [9] DEBUG ::: Exchange -- Checking the BypassModerationFromSendersOrMembers values
0
Topic starter

Think i have solved this….

Whilst im testing, we are only using a single public ip, so at the moment, we have external port 8080 redirected to internal port 80 on the cloudpanel machine.

As a result i noticed the following error in the console;

GET  http://<REDACTED>/CloudPanel/company/IMP/exchange/groups/919ca503-685a-4a5d-8ccf-e05519269e4d/members  403 (Forbidden)
 http://<REDACTED>/CloudPanel/company/IMP/exchange/groups/919ca503-685a-4a5d-8ccf-e05519269e4d/members.  No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://<REDACTED>:8080'  is therefore not allowed access. The response had HTTP status code 403.

So i took a look at the source of the files, and changed the ajax url in the GetMembers() function in ViewsCompanyExchangegroups_edit from;
"@Url.RenderContext.Context.Request.Url/members"
to
"@Url.Content("~" + Context.Request.Url.Path + "/members")"

I copied the url from the GetMailbox() function in ViewsCompanyUser_mailbox, is this ok?

0

Yes. Please let me know if that works so I can update it for the next release.

0
Topic starter

Yes its working fine 🙂

0

I put this in the new release. Thank you for letting me know!

0

Hi Jacob,

after update to last release (833) I have the same problem again. I repaired it with that solution.
Remember on it in other new releases, please 😉

0

Wow I messed that up somehow! I just double checked it and its in the version we are releasing now

Share: