Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Xray 2023 S11
-
Description
Description
An exception is being logged when moving the position of a Test Step (index) where the Action column has more than 255 chars.
How to reproduce
- Create a Test
- Add two Test steps where the Action column of the first Test step has more than 255 chars
- Move the first Test step for the second position
Actual result/Attachments
The Test step moves from the first position to the second one without problems, however the history of this action is empty and an error is being logged.
2022-06-27 11:40:50,427+0100 http-nio-8080-exec-22 ERROR admin 700x44465x1 1aw1sp6 0:0:0:0:0:0:0:1 /rest/raven/1.0/customFields/move [c.x.raven.activity.c] org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:ChangeItem][newvalue,null][field,Index of Step: .........more than 255.......... .][oldstring,1][newstring,2][id,19363][fieldtype,custom][oldvalue,null][group,19458] (SQL Exception while executing the following:INSERT INTO public.changeitem (ID, groupid, FIELDTYPE, FIELD, OLDVALUE, OLDSTRING, NEWVALUE, NEWSTRING) VALUES (?, ?, ?, ?, ?, ?, ?, ?) (ERROR: value too long for type character varying(255)))
Expected result
The action should appear in the History