HelloZeroNet / HelloZeroNet/ZeroNet

The user-specific `max_size` is ignored when it is less than `max_size` from `permission_rules`

オープン
#1,694 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
18.8k
フォーク
2.3k
PR マージ指標
30日以内にマージされた PR はありません

説明

For example, `geekless@zeroid.bit` still has `max_size` of 10000 bytes:

```json
{
"user_contents": {
"cert_signers": {
"zeroid.bit": [
"1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz"
]
},
"permission_rules": {
".*": {
"files_allowed": "data.json",
"max_size": 10000
}
},
"permissions": {
"geekless@zeroid.bit": {
"max_size": 5000
}
}
}
}
```

Shouldn't per-user permissions always take the precedence over permission rules?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue provides no file or test entry point; start by locating the handling of permission_rules, per-user permissions, and max_size. Confirm the behavior with the supplied configuration, then ensure the per-user value of 5000 takes precedence over the rule value of 10000 and add or update coverage for that case.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
authorization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。