nodeSolidServer / nodeSolidServer/node-solid-server
PUT /public/.meta file made /public/ unreadable
未關閉
還沒有人認領這個 Issue。
bug
triage
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I've wanted to test the .meta file a bit out, as I didn't find specification on what HTTP Requests are allowed for it. I've made a PUT request with <xyz> "test" as body, it responded with 201 created, but now the folder is broken. When trying to access it, it responds with 500 Can't parse container.
Here is the directory: https://otman.solid.community/public/
The request and response
PUT /public/.meta HTTP/1.1
Host: otman.solid.community
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Accept: */*
Accept-Language: en,en-US;q=0.7,de;q=0.3
Accept-Encoding: gzip, deflate, br
authorization: Bearer ...
Origin: https://otto-aa.github.io
DNT: 1
Connection: keep-alive
Referer: https://otto-aa.github.io/solid-filemanager/?url=https://otman.solid.community/public
Cookie: connect.sid=s%3A-KJ3IJZZQBVCXWGoa-EoaXKVN3fXH81V.T8alwcfT2VYWlvw0bq5il17fDgzNn%2FhNubbXmZF6aSk
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 12
HTTP/1.1 201 Created
X-Powered-By: solid-server
Access-Control-Allow-Origin: https://otto-aa.github.io
Vary: Accept, Authorization, Origin
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Authorization, User, Location, Link, Vary, Last-Modified, ETag, Accept-Patch, Accept-Post, Updates-Via, Allow, WAC-Allow, Content-Length, WWW-Authenticate
Allow: OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE
Link: <.meta.acl>; rel="acl", <.meta.meta>; rel="describedBy", <http://www.w3.org/ns/ldp#Resource>; rel="type"
MS-Author-Via: SPARQL
Content-Type: text/plain; charset=utf-8
Content-Length: 7
ETag: W/"7-rM9AyJuqT6iOan/xHh+AW+7K/T8"
set-cookie: connect.sid=s%3A-KJ3IJZZQBVCXWGoa-EoaXKVN3fXH81V.T8alwcfT2VYWlvw0bq5il17fDgzNn%2FhNubbXmZF6aSk; Domain=.solid.community; Path=/; Expires=Sat, 25 May 2019 04:47:47 GMT; HttpOnly; Secure
Date: Fri, 24 May 2019 04:47:47 GMT
Connection: keep-alive
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先重現針對 https://otman.solid.community/public/.meta 的 PUT 請求,並將 201 回應與隨後出現的 500 Can't parse container 回應進行比較。追蹤處理 .meta 資源 PUT 請求和容器解析的伺服器入口點;當格式錯誤的 .meta 更新不再導致 /public/ 無法讀取,且請求結果得到一致處理時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, node.js
- 領域
- api, backend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100