coderedcorp / coderedcorp/coderedcms

Apostrophe in sitename leads to failure

オープン
#669 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Type: Bug
主要言語
Python
スター
765
フォーク
154
PR マージ指標
30日以内にマージされた PR はありません

説明

#### Describe the bug
When creating a new site, if there's an apostrophe added in the --sitename argument, when you go to migrate it fails.

#### Steps to reproduce
Steps to reproduce the behavior:
1. Follow setup instructions (I'm using Debian OS)
2. When you get to the `coderedcms start mysite --sitename` part, add an apostrophe in the site name such as: `--sitename "John's Bakery"`
3. Go to migrate using manage.py
4. See error

#### Expected behavior
Either a warning to say you can't use `'` or escape the character / sanitize the input.

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

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

調査の方向性

`coderedcms start mysite --sitename "John's Bakery"` で問題を再現し、次に `manage.py` を通して migration を実行して失敗を記録します。これらのエントリーポイント間で `--sitename` の値がどのように処理されるかを調べます。アポストロフィを含む場合に migration が成功するか、またはコマンドがサポートされていないことを明確に警告すれば完了です。

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

評価

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

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

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