nodeSolidServer / nodeSolidServer/node-solid-server
NSS does not redirect from /foo to /foo/ for private resources (from command line)
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.8k
- 派生
- 308
- PR 合并指标
- 30 天内没有已合并 PR
描述
I have myPod/private/ and myPod/public/ folders.
The code below, after login, gives 200 if the target is myPod/private/ but a 401 if the target is myPod/private. However both myPod/public and myPod/public/ return a folder list.
import {SolidNodeClient} from './';
const client = new SolidNodeClient();
const target = "https://jeff-zucker.solidcommunity.net/private";
async function test(credentials){
let session = await client.login( credentials );
if( session.isLoggedIn ){
let r = await client.fetch( target );
console.log( r.status );
}
else {
console.log( 'Could not log in!' );
}
}
test({
username:'jeff-zucker',
idp:'https://solidcommunity.net',
password:'REDACTED'
})
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
报告提供了一个使用 SolidNodeClient 的 JavaScript 命令行复现;首先分别使用带和不带末尾斜杠的私有资源 URL 和公共资源 URL 运行它。完成的标准是私有资源在两种形式下都表现一致,包括登录后也如此,并且不会出现所报告的 401 响应。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, nodejs
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100