EC-CUBE / EC-CUBE/coupon-plugin
[Coupon42] 制限を超える文字を入力するとシステム エラーが発生する
- Dominant language
- PHP
- Stars
- 10
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
## 概要(Overview)
新規作成ページで50文字を超える文字列を入力すると、画面にシステムエラーが表示されます。
## 期待する内容(Expect) or 要望 (Requirement)
## 再現手順(Procedure)
Step 1. 受注管理 > クーポン > クーポンを新規登録 (/plugin/coupon/new)
[クーポン名]欄に51文字以上入力して登録ボタンを押す

Step 2. Một lỗi hệ thống được hiển thị ra màn hình

Step 3. チェックファイル ファイル var/log:
システムエラーが発生しました。 ["An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 7 ERROR: value too long for type character varying(50)"
### 環境 (environment)
+ EC-CUBE: 4.2.0-beta2-20220916
+ PHP: 7.4.x, 8.1.x
+ DB:
- PostgreSQL 14.x.x
- MySQL 5.7.x
## 関連情報 (Ref)
4.2 公式プラグインテスト_EC-CUBE 4.2.0-beta2-20220916_Plugin
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the coupon creation page entry point, /plugin/coupon/new, and reproduce the failure using more than 50 characters in the coupon name field on the listed database environments. Inspect the resulting log error and determine the expected behavior for overlong input; done means submitting such input no longer displays a system error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php, postgresql
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100