plone / plone/plone.restapi

Type schema is available only for authenticated users

Open
#1,409 3 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

The Type Schema endpoint (/@types/WhateverType) is available only for authenticated users:

https://github.com/plone/plone.restapi/blob/master/src/plone/restapi/services/types/get.py#L120
https://github.com/plone/plone.restapi/blob/master/src/plone/restapi/services/types/get.py#L23

If we want to have a DefaultView in Volto for schema based content-types and this view should be viewed by anonymous users, we need to remove the permission check here.

Opinions?

@ionlizarazu @pbauer

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

Start in src/plone/restapi/services/types/get.py, especially the permission check around lines 23 and 120, and review how the Type Schema endpoint handles anonymous requests. Confirm the intended access policy with the issue discussion; done means an anonymous user can retrieve /@types/WhateverType for the schema-based DefaultView use case without weakening unrelated permissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authorization
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.