Configurable user-profile loading: WINRS_NOPROFILE is hardcoded (winrs -noprofile)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java
調査の方向性
Envelopes.createShell から開始し、既存の作業ディレクトリの固定と shell の再作成のフローを追跡します。次に、コマンドと shell の CLI パース、および commands.md と cli.md を調査し、Create オプション、固定状態でのリプレイ、CLI の動作についてテストを追加または更新します。完了条件は、プロファイルの読み込みがデフォルトでは無効のままであり、shell ごとに要求でき、再作成後にリプレイされ、非管理者の場合の失敗が文書化されていることです。
索引モデルが issue の本文から書いたものです。
説明
winrs parity:
-nop[rofile]— except our polarity is reversed: winrs loads the profile by default and-noprofileturns it off; this client hardcodesWINRS_NOPROFILE=TRUEin the shell Create options, so the profile is never loaded and there is no way to ask for it.
Context
Envelopes.createShell always sends:
<wsman:Option Name="WINRS_NOPROFILE">TRUE</wsman:Option>
That is the safe default — winrs's load-the-profile default fails for users who are not local administrators on the target — but some commands genuinely need the user profile (HKCU hive, %APPDATA%, per-user PATH), and today they cannot have it.
Proposed API
CommandResult result = client.command("reg query HKCU\Software\...")
.loadUserProfile() // shell-scoped, like workingDirectory: first command pins it
.execute();
Keep NOT loading the profile as the default — it is both the current behavior and the choice that works for non-admin users.
CLI
--profile on command (and shell, #136):
winrm-java -h server -u 'DOMAIN\user' -pf pw.txt --profile exec 'echo %APPDATA%'
Requirements
- Shell-scoped setting with the same pinning semantics as the working directory (replayed with its original value when a reaped shell is silently recreated).
- Document the failure mode: requesting the profile as a non-admin typically faults — the fault surfaces through the normal
WinRMFaultExceptionpath with its code and detail. - Tests: wire assertion of the option value on Create, pinned replay on recreation, CLI parsing; docs (commands.md + cli.md).
🤖 Generated with Claude Code
- 主要言語
- Java
- スター
- 13
- フォーク
- 4
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 18
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MetricsHub/winrm-java のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
MetricsHub/winrm-java#194 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
MetricsHub/winrm-java#176 ·
メンテナーはふだん 1 日以内に返信
MetricsHub/winrm-java の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
bancolombia/scaffold-clean-architecture#1002 ·
メンテナーはふだん 1 日以内に返信
-
CalendarEventAttendance/get returns eventAttendanceStatus while the doc says attendanceStatus対応中かも @chibenwa が今日担当しました。 オープンbug claude
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
linagora/tmail-backend#2697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/skywalking#14120 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Case-insensitive search suggestions miss items when the JVM default locale is Turkish対応中かも @thswlsqls が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HMCL-dev/HMCL#6943 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信