Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-8618

As a system, an exception is being logged when changing the position of a Test Step

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Xray DC V7.0.2
    • Database, UI
    • None
    • Xray 2023 S11
    • OK

    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

      1. Create a Test
      2. Add two Test steps where the Action column of the first Test step has more than 255 chars
      3. 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

      Attachments

        Activity

          People

            masg Marco Guedes
            maaf Miguel Fernandes
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: