Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent empty body when cloning #20047

Merged
merged 2 commits into from Apr 5, 2024
Merged

Conversation

Marc-Roig
Copy link
Contributor

What does it do?

An i18n middleware was faliling when trying to clone a document.

The clone request had an empty body, which was an unexpected edge case.

Fixes
image

Also, the content manager does not send any locale when duplicating an entry, I will create another ticket for that.

@Marc-Roig Marc-Roig added source: plugin:i18n Source is plugin/i18n package pr: fix This PR is fixing a bug labels Apr 5, 2024
@Marc-Roig Marc-Roig self-assigned this Apr 5, 2024
Copy link

vercel bot commented Apr 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 1:08pm

Copy link
Contributor

@innerdvations innerdvations left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@Marc-Roig
Copy link
Contributor Author

Marc-Roig commented Apr 5, 2024

there is a failing unit_front content releeases test, will ask CS team if they know about it before merging

@Marc-Roig Marc-Roig merged commit bad7fc8 into v5/main Apr 5, 2024
85 of 88 checks passed
@Marc-Roig Marc-Roig deleted the fix/clone-with-empty-body branch April 5, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: plugin:i18n Source is plugin/i18n package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants