plone / plone/plone.restapi

discussion endpoint does not return transformed text content

Open
#889 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
109
Forks
107
Avg merge
2d 3h
Merged PRs (30d)
4

Description

  1. set discussion text_transform = "text/x-web-intelligent" (e.g. in the Discussion control panel)
  2. Create a comment with a link in it
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.