json_body should not read entire request BODY
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start in src/plone/restapi/deserializer/init.py at the referenced request-body handling, then read the linked CMFPlone and Zope discussions and the temporary fix in pull request 1729. Confirm the behavior with a JSON request whose body exceeds 1MB; done means large request bodies are processed without the Zope form memory-limit failure.
Written by the indexing model from the issue text.
Description
So this line is bad:
data = json.loads(request.get("BODY") or "{}")
With Zope 5.8.4+ this fails when the request BODY is larger than 1MB.
See discussion in https://github.com/plone/Products.CMFPlone/issues/3848 and https://github.com/zopefoundation/Zope/pull/1142.
See my summary of the history and the steps taken so far.
Temporarily fixed in https://github.com/plone/plone.restapi/pull/1729 by disabling a Zope form memory limit check.
- Dominant language
- Python
- Stars
- 109
- Forks
- 107
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plone/plone.restapi
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
plone/plone.restapi#2031 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
plone/plone.restapi#662 · 2 comments · 4 reactions ·
-
01 type: bug
plone/plone.restapi#2023 · 1 comment · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
plone/plone.restapi#2017 ·
-
@controlpanels/content-rules/<rule>/action/<idx> omits values for fields in non-default fieldsets Open
plone/plone.restapi#2016 · 1 assignee ·
All issues in plone/plone.restapi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100