POST not allowed for auxiliary resources
@bourgeoa já está trabalhando nisso.
Desde 28/11/2020.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
@csarven @michielbdejong @jeff-zucker
When a POST method request with the Slug header targets an auxiliary resource, the server MUST respond with the 403 status code and response body describing the error. [Source]
This is taken from specification.
It does not seem to fit well with : PR #1527
When a DELETE request targets storage’s root container or its associated ACL resource, the server MUST respond with the 405 status code. Server MUST exclude the DELETE method in the HTTP response header Allow in response to safe method requests [RFC7231]. [Source]
Why not use 405 for both and exclude the method from the headers response ? Is there a conflict with http specifications ?
When I look at it from the error code side it seems also easier to understand for Solid users and devs :
This is certainly a simplification.
- 400 do not exist (resource, content-type, ...)
- 401 user has no authorization (not logging ...)
- 403 user is not allowed ( relates to user permission...)
- 405 method is not allowed in this request (DELETE for root, POST for auxiliary resources, ...)
- 409 conflict (cannot delete container with resources, cannot inserts with patch when deletes fails, cannot create a resource with the same name than an existing container, ...)
- 415 exist but unknown (content-type mime-type is unknown, ...)
- Linguagem predominante
- JavaScript
- Estrelas
- 1.8k
- Forks
- 308
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nodeSolidServer/node-solid-server
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
nodeSolidServer/node-solid-server#1848 · 2 comentários · 1 reação ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
nodeSolidServer/node-solid-server#1841 · 2 comentários ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
nodeSolidServer/node-solid-server#1147 ·
-
remove bootstrap dependency Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
nodeSolidServer/node-solid-server#1867 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
nodeSolidServer/node-solid-server#1853 ·
Todas as issues de nodeSolidServer/node-solid-server
Issues semelhantes
-
ai-observability bug team/ai-observability
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
AllTheMods/ATM-10-L#19 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SignalK/n2k-signalk#345 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
JuliaPluto/PlutoPlotly.jl#72 ·