EC-CUBE / EC-CUBE/ec-cube2

「システム設定>マスターデータ管理」画面 桁数チェック漏れでDBエラー

Open
#114 1 comment 0 reactions 1 assignee Claimed by @nanasess View on GitHub
bug:Low
Dominant language
PHP
Stars
92
Forks
97
Avg merge
4d 2h
Merged PRs (30d)
9

Description

「システム設定>マスターデータ管理」画面の「ID」の桁数チェックが漏れているようで、DB 処理でオーバーフローする。

> Native message: ERROR: value "1234567890" is out of range for type smallint

管理者向け画面なので、深刻な影響は無いように思う。

当該画面が対象とする多くのテーブルの ID は、smallint だが、例外が見受けられる。
- mtb_permission.id は text
- mtb_country.id は int4

テーブル定義を参照して、int2 int4 text に合わせて切り替えるのが理想か。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.