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