Skip to content

[FIX] Oembed request not respecting payload limit#24418

Merged
sampaiodiego merged 2 commits intodevelopfrom
fix-oembed-request-size-limit
Feb 7, 2022
Merged

[FIX] Oembed request not respecting payload limit#24418
sampaiodiego merged 2 commits intodevelopfrom
fix-oembed-request-size-limit

Conversation

@sampaiodiego
Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Issue(s)

Closes #24395

Steps to test or reproduce

Further comments

@sampaiodiego sampaiodiego added this to the 4.4.1 milestone Feb 4, 2022
@sampaiodiego sampaiodiego requested review from a team February 4, 2022 19:54

if (totalSize > sizeLimit) {
SystemLogger.info({ msg: 'OEmbed request size exceeded', url });
break;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't found any issue on breaking the async iterator loop this way.
not sure if this could produce a memory though

@sampaiodiego sampaiodiego merged commit 1d4ed8a into develop Feb 7, 2022
@sampaiodiego sampaiodiego deleted the fix-oembed-request-size-limit branch February 7, 2022 14:33
@pierre-lehnen-rc pierre-lehnen-rc mentioned this pull request Feb 7, 2022
@pierre-lehnen-rc pierre-lehnen-rc mentioned this pull request Mar 1, 2022
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.

posting direct download links to large files in chat hangs the server for a while

2 participants