nodeSolidServer / nodeSolidServer/node-solid-server

POST/PUT in NSS allow multiple resource with same url and different content-type

未關閉
#1,529 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
1.8k
分支
308
PR 合併指標
30 天內沒有已合併 PR

描述

You can create resources :

  1. https://pod/foo.txt with content-type text/plain => creates file : /foo.txt
  2. https://pod/foo.txt with content-type text/turtle => creates file /foo.txt$.ttl
  3. https://pod/foo.txt/ as a container => creates folder /foo.txt

The first 2 have the same url and there are 2 different files created.
All 3 have the same visual representation in SolidOs.

The first 2 should not occur and I think this is a bug
For the third one I remember @timbl writing it should not occur, but did not find where.
There was also a redirect discussion between foo/bar/ and foo/bar. His this something to do in GET ?

Is there any solid/specification, I did not find anything ? @csarven @michielbdejong

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先重現針對 /foo.txt、使用 text/plain 和 text/turtle 的 POST 與 PUT 請求,以及針對 /foo.txt/ 的容器請求。接著檢查相關的 GET 與重新導向行為;當資源 URL 與結尾斜線行為得到一致定義,並且能防止具有相同 URL 的重複資源時,即視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, node.js
領域
api, backend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。