discussion endpoint does not return transformed text content
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 109
- Forks
- 107
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Description
- set discussion text_transform = "text/x-web-intelligent" (e.g. in the Discussion control panel)
- Create a comment with a link in it
- Query the comment via the discussion endpoint of plone.restapi
-> response will be something like
text: {'data': 'Go to https://www.plone.org', 'mime-type': 'text/plain'}
I'd expect portal transforms to do its work:
text: {'data': 'Go to <a href="https://www.plone.org" rel="nofollow">https://www.plone.org</a>' 'mime-type': 'text/x-web-intelligent'}
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.
Research direction
Reproduce the issue by setting discussion text_transform to "text/x-web-intelligent", creating a linked comment, and querying it through the plone.restapi discussion endpoint. Trace how the endpoint serializes the comment text; done means the response contains transformed HTML with the expected mime-type instead of plain text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100