[BUG] occ wrapper does not preserve arguments containing spaces
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, docker
- 領域
- cli
調査の方向性
bash -c を介して php /app/www/public/occ を実行する occ ラッパーを見つけ、引数の渡し方を調べてください。報告では、引数が分割される原因として $* を特定し、OCC の呼び出し時に元の引数境界を維持することを提案しています。スペースを含む値を指定したコマンドが、1つの引数として OCC に渡されれば完了です。この issue ではテストやファイルは指定されていません。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
The occ wrapper uses $* when passing arguments to php occ through bash -c:
sudo -u abc -s /bin/bash -c "php /app/www/public/occ $*"
This causes arguments containing spaces to lose their original argument boundaries when expanded and interpreted by the inner shell.
As a result, commands that pass a single argument containing spaces may behave incorrectly because the argument gets split into multiple arguments.
Expected Behavior
The wrapper should preserve the original argument boundaries, including arguments containing spaces, quotes, and special characters.
Using "$@" instead of $* would preserve the individual arguments. Ideally, the additional bash -c invocation should also be avoided.
For example:
sudo -u abc -- php /app/www/public/occ "$@"
Steps To Reproduce
- Run the LinuxServer Nextcloud container.
- Execute an OCC command with an argument containing spaces:
occ config:app:set myapp setting --value="hello world"
- Observe that the argument is split into multiple arguments when passed to the underlying OCC command.
- Compare with the expected behaviour, where hello world should be passed as a single argument.
Environment
- OS: debian trixie
- How docker service was installed: https://get.docker.com
CPU architecture
arm64
Docker creation
not relevant
Container logs
not relevant
- 主要言語
- Dockerfile
- スター
- 898
- フォーク
- 143
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxserver/docker-nextcloud のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
linuxserver/docker-nextcloud#551 · コメント 4 件 ·
-
[BUG] High CPU usage at random moments対応中かも @mauro2306 が 87 日前に担当しました。 オープンno-issue-activity
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
linuxserver/docker-nextcloud#539 · コメント 43 件 · リアクション 4 件 ·
linuxserver/docker-nextcloud の issue をすべて見る
似ている issue
-
photos.mjs fetch: a fetch where every id fails still writes assets/img/credits.json and prints the "wrote to" banner対応中かも @shuhuNB515 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Leonxlnx/taste-skill#228 ·
メンテナーはふだん 3 日以内に返信
-
area:tui enhancement platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anthropics/claude-code#112838 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
arcships/dim#2294 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信