Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityHandler.OnMessageActivityAsync is executed before receiving a file attachment when using DLASE #6853

Open
sw-joelmut opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior.

Comments

@sw-joelmut
Copy link
Collaborator

Version

main (4.22.9)

Describe the bug

Using DLASE when sending messages from WebChat (preferably file attachments), the BF-Connector TransportHandler.ListenAsync method functionality that reads from NamedPipes is executed after the ActivityHandler.OnMessageActivityAsync event from the bot.
So when sending a file attachment, the MemoryStream information comes empty.
This issue happens randomly, since it could be an asynchronous issue.

To Reproduce

Steps to reproduce the behavior:

  1. Configure NamedPipe in an Echo bot, and use a DLASE WebChat client.
  2. Add a breakpoint to the TransportHandler.ListenAsync (line 50).
  3. Add a breakpoint to the bot's ActivityHandler.OnMessageActivityAsync.
  4. Send a file attachment over WebChat.
  5. The 3rd step (breakpoint) should be hit first, instead of the 2nd step.

Expected behavior

The file information (MemoryStream) inside the activity's attachment should come with buffer data.

Screenshots

image

@sw-joelmut sw-joelmut added the bug Indicates an unexpected problem or an unintended behavior. label Sep 27, 2024
@sw-joelmut sw-joelmut self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior.
Projects
None yet
Development

No branches or pull requests

1 participant