Closed Leon-Gr closed 2 months ago
More Details on the issue:
Invited an user via POST https://portal-backend.dev.demo.catena-x.net/api/administration/invitation
Response: 200
Payload:
When calling GET https://portal-backend.dev.demo.catena-x.net/api/administration/registration/applicationsWithStatus?page=0&size=10&companyName=
the response does not include the newly invited company account
NOTE the last invite created on the backend side was on the 21st of February. I also checked the shared idP as well as the portal db. In none of the systems the new user got created
@VPrasannaK94 @ntruchsess I just tested the change https://github.com/eclipse-tractusx/portal-backend/pull/608 on the release candidate env and the invite is still not working.
cc: @Phil91 @jjeroch
@VPrasannaK94 @ntruchsess I just tested the change #608 on the release candidate env and the invite is still not working.
cc: @Phil91 @jjeroch
status update: the issue came down to the mail at the end of the process not being sent, which was in the first place an issue with our smtp account but now that that's solved the processes worker runs into the following error:
[15:59:22 ERR] processing failed with following Exception Cannot access a disposed object.Object name: 'MimePart'.System.ObjectDisposedException: Cannot access a disposed object.Object name: 'MimePart'. at MimeKit.MimeEntity.CheckDisposed(String objectName) at MimeKit.MimePart.CheckDisposed() at MimeKit.MimePart.Prepare(EncodingConstraint constraint, Int32 maxLineLength) at MimeKit.MimeMessage.Prepare(EncodingConstraint constraint, Int32 maxLineLength) at MailKit.Net.Smtp.SmtpClient.Prepare(FormatOptions options, MimeMessage message, EncodingConstraint constraint, Int32 maxLineLength) at MailKit.Net.Smtp.SmtpClient.Prepare(FormatOptions options, MimeMessage message, MailboxAddress sender, IList1 recipients, SmtpExtensions& extensions) at MailKit.Net.Smtp.SmtpClient.SendAsync(FormatOptions options, MimeMessage message, MailboxAddress sender, IList
1 recipients, CancellationToken cancellationToken, ITransferProgress progress) at Org.Eclipse.TractusX.Portal.Backend.Mailing.SendMail.SendMail._send(MimeMessage message) in /src/mailing/Mailing.SendMail/SendMail.cs:line 58 at Org.Eclipse.TractusX.Portal.Backend.Mailing.SendMail.MailingService.SendMails(String recipient, IReadOnlyDictionary2 parameters, String template) in /src/mailing/Mailing.SendMail/MailingService.cs:line 41 at Org.Eclipse.TractusX.Portal.Backend.Processes.Mailing.Executor.MailingProcessTypeExecutor.SendMail() in /src/processes/Mailing.Executor/MailingProcessTypeExecutor.cs:line 95 at Org.Eclipse.TractusX.Portal.Backend.Processes.Mailing.Executor.MailingProcessTypeExecutor.SendMail() in /src/processes/Mailing.Executor/MailingProcessTypeExecutor.cs:line 115 at Org.Eclipse.TractusX.Portal.Backend.Processes.Mailing.Executor.MailingProcessTypeExecutor.ExecuteProcessStep(ProcessStepTypeId processStepTypeId, IEnumerable
1 processStepTypeIds, CancellationToken cancellationToken) in /src/processes/Mailing.Executor/MailingProcessTypeExecutor.cs:line 70 at Org.Eclipse.TractusX.Portal.Backend.Processes.Worker.Library.ProcessExecutor.ExecuteProcess(Guid processId, ProcessTypeId processTypeId, CancellationToken cancellationToken)+MoveNext() in /src/processes/Processes.Worker.Library/ProcessExecutor.cs:line 88 at Org.Eclipse.TractusX.Portal.Backend.Processes.Worker.Library.ProcessExecutor.ExecuteProcess(Guid processId, ProcessTypeId processTypeId, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource
Thanks evelyn for identifying and solving the issue!
successfully tested 👍
Current Behavior
As soon as a new business partner is invited via the portal (dev env) we see a confirmation message (the dev tools show a 200 Ok response as well) but the new invitee doesn't appear in the list and there is no invitation sent.
Expected Behavior
The new invitee should appear in the list and they should receive an invitation email.
Steps To Reproduce
Go to dev env and to the invite business partner page and click "invite". try to send an invitation. Invitation sent via the cx-operator user, invitation sent to Nidhi.Garg@partner.bmw.in