Conversation
使える文字の一覧 (allowedChars) をサーバから取得し、push / diff の前に 「規則で変換した結果が元の名前と違えばエラー」で止める。A-Za-z0-9._ の ハードコード (サーバ規則の写し) を削除する。ハイフンの許可のような規則の 変更に、CLI の修正なしで追従する。 クライアント自身の安全条件は残し、役割を分離した: - サーバ由来の名前の検証は、パス区切り・「..」・「:」・空名の拒否のみ (ローカルパスと URL に埋め込むため。命名規則の写しではない) - multipart のファイル名は、Content-Disposition ヘッダを壊す文字 (引用符・バックスラッシュ・制御文字・非 ASCII) のみ拒否 問題 13954 で実測済み: case-01.txt がそのままの名前で保存され、その状態の 提出でジャッジが完走 (AC)。空白入りの case 1.txt は「case1.txt になります」 とサーバ由来の変換名を示して push 前に止まる。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
テストケース名に使える文字の一覧を
GET /v1/testcase_name_ruleから取得し、push / diff の前に「規則で変換した結果が元の名前と違えばエラー」で止めます。A-Za-z0-9._のハードコード (サーバ規則の写し) を削除しました。今回のハイフン許可のような規則の変更に、CLI の修正なしで追従します。クライアント自身の安全条件は残し、役割を分離しています:
..・:・空名の拒否のみ (ローカルパスと URL に埋め込むための安全条件で、命名規則の写しではない)Content-Dispositionヘッダを壊す文字 (引用符・バックスラッシュ・制御文字・非 ASCII) のみ拒否実測 (問題 13954、原状復帰済み)
case-01.txtがそのままの名前で保存される (?detail=1で確認)case 1.txtは「yukicoder では case1.txt になります」とサーバ規則由来の変換名を示して push 前に停止単体テスト 55 件、clippy
-D warnings/ fmt 通過。🤖 Generated with Claude Code
https://claude.ai/code/session_01GDSDbQcqbZqhXQ1dVo9BeE