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