dentsusoken / iPLAss

Java-based open source low-code development platform for enterprise
https://iplass.org/
GNU Affero General Public License v3.0
67 stars 25 forks source link

更新処理の際にPropertyEditorとEntityのPropertyの型をチェックし意図しない値での更新を防ぐ #522

Closed HiguchiKiyoshi closed 4 years ago

HiguchiKiyoshi commented 4 years ago

更新処理の際にPropertyEditorとEntityのPropertyの型をチェックし意図しない値での更新を防ぐようにする。 現状、PropertyEditorの設定とEntityのPorpertyの型に互換性がない場合、意図せずnullで更新されてしまう。 これを、型に互換性がない場合はシステムエラーではじくようにする。 また、 併せて、adminConsoleのcheckState()で不一致を検出可能にする。

xkazama-yukio3 commented 4 years ago

(English) Check the PropertyEditor and Entity property types during the update process to prevent updates with unintended values. Currently, if the PropertyEditor type and the Entity's porperty type are incompatible, it will be unintentionally updated with null.

To prevent this, if the types are incompatible, repel with a system error. Also, at the same time, checkState () of AdminConsole can detect the mismatch.