App: user files must survive a failed read (usage.json, tags.json, studio.json, wrong-typed sections, locked files)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- json, python
- 領域
- desktop-dev, security
調査の方向性
Start with the load() paths in zorbit/usage.py, zorbit/tags.py, and zorbit/config.py, then review zorbit/studio.py, zorbit/fsutil.py, and zorbit/paths.py alongside the audit IDs. Run the existing tests for these modules and add focused coverage for failed, malformed, and locked-file cases. Done means valid state is preserved or defaults are reported when reads fail, unsafe asset names are rejected, failed writes are retried, and configuration errors produce a readable application message.
索引モデルが issue の本文から書いたものです。
説明
From the audit of ZOrbit 0.11.0 (31 October 2026).
What is wrong
zorbit/usage.pyload()setsself.mtimeand empties brushes, menus and picks before it opens the file. If the read fails (a scanner or sync client holding the file, or a hand-edit typo) the except clause passes, the object believes it has loaded that mtime, and the next pick saves the empty state over the file. One bad entry inside the brushes loop also drops every later brush, all auto-slot state and the whole Recent list, because they are read after it in one try block.zorbit/tags.pyload()keeps "the previous state" when the file cannot be parsed. On the first load of a process there is no previous state, so a stray comma intags.jsonleaves no tags at all, Favourites included. Every tag and browser slot is then reported as "tag X does not exist", which points the user away from the real cause.zorbit/config.py:bridge = raw.get("bridge") or {}andring = raw.get("ring") or {}assume dicts."bridge": "F9"or"ring": "big"raises AttributeError, the whole file is dropped, the app logs'str' object has no attribute 'items'and Studio shows one problem with no location. A menu'sfanis not validated, so"fan": "false"is true. Misspelt names insidering.colors,bridge,browserand item fields are ignored without the "did you mean" that the 0.11.0 ring and menu keys got.zorbit/config.py: brush, alpha, material and texture names andiconvalues are not checked as names.assets._resolve,brushes.thumbnailandradiald.icon_forcallis_file()on them, so a menus file with\\host\share\a.pngmakes Windows connect to that server and send an NTLM hash (while Studio previews the ring, or on the first pick). The COPYDATA path inradiald.pyalready rejects such names.zorbit/studio.py_read_studio_filereturns{}for a missing and for an unreadable file.set_pref(on every screen change),add_zbrush_folderand the window-placement writer then write that empty dict back, dropping the other keys.zorbit/fsutil.pywrite_atomic:os.replacefails at once with PermissionError when another process holds the destination open (antivirus, OneDrive, the app reading the file it watches). Studio shows "radial.json could not be written: Access is denied".zorbit/paths.pyensure_configruns outside the fatal handler inradiald.main; an unwritable%APPDATA%ends the app with a traceback inapp_stderr.logand nothing else.
Fix
usage.load: build the new state in locals and assign on success; on OSError keep the previous state and mtime so the next load retries; on a parse error copy the file tousage.json.badbefore any save; per-entry try.tags.load: on a parse error with empty_tags, install the starter tags in memory and keep.errorso writes stay refused;config.pyand the problems list say "tags.json could not be read" whentags.erroris set.config.load:isinstance(dict)checks for the top level,bridge,ring,browserandmenuswith a plain problem text and defaults;fanmust be a bool; suggestions for the other key levels; reject names and icons containing\,/,:or..or starting with\\or//, listed as problems.studio.py: distinguish missing from unreadable and skip the write when the read failed.write_atomic: retryos.replacefour or five times with a short pause on PermissionError or winerror 5 and 32.ensure_configinside the fatal handler, with a readable message.
Audit ids: F122, F042, F047, F048, F231, F232, F028, F032, F013, F307, F373, F371, F372, F123, F366.
- 主要言語
- Python
- スター
- 2
- フォーク
- 1
- 平均マージ
- 3分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
combwizard/ZOrbit のほかの issue
-
idea ring tags
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
combwizard/ZOrbit#38 ·
-
idea ring tags
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
combwizard/ZOrbit#37 ·
-
browser idea tags
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
combwizard/ZOrbit#34 ·
-
bridge browser idea
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
combwizard/ZOrbit#28 ·
-
Commands from other programs: open a menu, pick a brush or switch profile from the command lineオープンidea ring
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
combwizard/ZOrbit#99 ·
combwizard/ZOrbit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
dgunning/edgartools#1853 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
Imbad0202/academic-research-skills#1039 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
openmainframeproject/feilong#980 ·
メンテナーはふだん 5 日以内に返信