microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
868 stars 372 forks source link

Bot Framework Composer - Azure Blob SAS Link Accessibility #9681

Closed Mohanraj27v closed 8 months ago

Mohanraj27v commented 9 months ago

Describe the bug

Version

Browser

OS

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Additional context

I am using Bot Composer to process the user input in my azure function and receive the link as an response. when I test my function app in the local vs code, I could able to download the file link which was obtained from the blob account[pubic].

Bot composer version - 2.1.2 Nodejs version - 20.9.0 dotnet version - 3.1.426

But when I receive it in my composer and tried to dowload the file, I got the below authentication request error. I am not sure why it is poping up.

**This XML file does not appear to have any style information associated with it. The document tree is shown below.

AuthenticationFailed Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:f7a5bc0c-c01e-002c-27cc-34a105000000 Time:2023-12-22T11:43:51.3776591Z Signature fields not well formed. ** It seems like, when the bot composer tried to invoke the url, the request authentication is failed from the bot composer.
InfinytRam commented 8 months ago

Hi @Mohanraj27v,

Are you able to provide the steps to reproduce this issue?

Mohanraj27v commented 8 months ago

@rampaged , the issue got resolved. the problem was while parsing the request url, the composer tends to parse the text content along with the link, so that eventually the link was not working.