microsoft / microsoft/BotFramework-DirectLineJS
Upload multiple attachments may send them in random orders
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 199
- Forks
- 133
- PR merge metrics
- No merged PRs in 30d
Description
Using DirectLineJS (not Web Chat) and send the following to the bot.
directLine.postActivity({
attachments: [{
contentType: 'image/png',
contentUrl: 'https://webchat-waterbottle.azurewebsites.net/public/surfacelogo.png'
}, {
contentType: 'image/png',
contentUrl: 'https://webchat-waterbottle.azurewebsites.net/public/xboxlogo.png'
}],
text: 'Hello, World!',
type: 'message'
});
Due to network load speed differ, the bot may receive the two attachments in reversed order.
I looked at network trace, it seems DLJS is the root cause, not the channel.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the DirectLineJS postActivity entry point and reproduce the example with its two image attachments while observing the network trace. Trace the attachment upload and activity-send flow; done means the bot receives attachments in the same order as the input array.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100