Skip to content

Conversation

@beervoley
Copy link
Contributor

@beervoley beervoley commented Jul 23, 2024

Related Issue

For MSFT folks: https://microsoft.visualstudio.com/OS/_workitems/edit/52712745

Description

Background Image with invalid URI would crash the entire app when we attempted to render it. This change addresses that and brings the behaviour on par with NodeJS renderer and drops the image in this case. + added warning for text sources for mediasource for the similar problem.

Sample Card

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6",
    "backgroundImage" : "invalidURI",
    "body": []
}

How Verified

Verified locally that the BackgroundImage is being discarded as well as added unit test for this scenario.

TODO: follow up on #8967

@jwoo-msft jwoo-msft merged commit 728044c into main Jul 24, 2024
@jwoo-msft jwoo-msft deleted the u/vsiliush/fix-nullptr-root branch July 24, 2024 20:43
jwoo-msft pushed a commit that referenced this pull request Jul 24, 2024
…8968)

* ignore background image

* remove new line

* add warning to text sources load

* address pr feedback
jwoo-msft added a commit that referenced this pull request Jul 24, 2024
…8968) (#8969)

* ignore background image

* remove new line

* add warning to text sources load

* address pr feedback

Co-authored-by: Vsevolod <sevkorobot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants