MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
281 stars 502 forks source link

Unable to render images from URLs with URL-params #9121

Open RPCMoritz opened 1 year ago

RPCMoritz commented 1 year ago

When I try to embed an image from an external URL into an adaptive card, it is not rendered. At least in the webview, it looks like the url-param character &are actually (double!) URL-encoded as &

Sample item not getting rendered:

{
    "type": "Image",
    "url": "<jira-host>/SECURE/VIEWAVATAR?SIZE=XSMALL&AVATARID=10315&AVATARTYPE=ISSUETYPE",
    "width": "40px"
}

Element in Teams web-view:

svg class="ac-image app-svg icons-image icons-msft-office icons-msft-office-no-padding icons-filetype card-image-error" card-image-error="" 
src="https://<jira-host>/secure/viewavatar?size=xsmall&amp;amp;avatarId=10315&amp;amp;avatarType=issuetype"
<snip>

If I use a URL which does not contain parameters, the rendering works as expected.

Is there a way to escape the URL such that it will be used as is? My attempt to single-quote the entire URL failed catastrophically.

ghost commented 1 year ago

Hi RPCMoritz! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Meghana-MSFT commented 1 year ago

Thank you for reporting this, we will check and get back to you.

Meghana-MSFT commented 1 year ago

It looks like it is not supported, we will still check internally and get back to you.

RPCMoritz commented 1 year ago

Thank you. It would be nice to know why it's not supported, if that is indeed the case. Handling some URLs differently than others certainly is an unexpected behavior.

RPCMoritz commented 1 year ago

Is there some way to estimate when you will complete your evaluation of the issue?

RPCMoritz commented 1 year ago

Would you kindly be able to give me an update on this?

Jocelynncanzoneri commented 1 year ago

Can you guys explain why my emails are not able to send.

Where's my money coming from?

Why am I unable to fill out forms?

Thank you Jocelynn Canzoneri Ps I don't understand how you speak aren't you sapose to solify what I do by putting it somewhere that makes money.

I think team money where's the money going. Can you please inform me and adjust it. Thank you

On Mon, Jul 31, 2023, 2:56 AM Rick Moritz @.***> wrote:

When I try to embed an image from an external URL into an adaptive card, it is not rendered. At least in the webview, it looks like the url-param character &are actually URL-encoded as &amp;

Sample item not getting rendered:

{ "type": "Image", "url": /SECURE/VIEWAVATAR?SIZE=XSMALL&AVATARID=10315&AVATARTYPE=ISSUETYPE, "width": "40px" }

Element in Teams web-view:

svg class="ac-image app-svg icons-image icons-msft-office icons-msft-office-no-padding icons-filetype card-image-error" card-image-error="" src="https:///secure/viewavatar?size=xsmall&amp;avatarId=10315&amp;avatarType=issuetype"

If I use a URL which does not contain parameters, the rendering works as expected. Is there a way to escape the URL such that it will be used as is? My attempt to single-quote the entire URL failed catastrophically. — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Meghana-MSFT commented 1 year ago

@RPCMoritz - Apologies for the delay, team is looking into this issue, we will keep you posted once we have an update. Thank you for your understanding.

ChetanSharma-msft commented 8 months ago

Hello, Sorry for delay in response.

We are actively checking this issue with engineering team and let you know the updates.

RPCMoritz commented 1 month ago

So, any news on this issue?