Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23284

Exception on Numeric FieldValue for TextLine via REST-API-V2

    Details

      Description

      When creating content containing a text-line (e.g. a folder) an exception is thrown when the content of the text-line is numeric.
      Only occurs when creating content using XML as the requests content.

      The checkValueStructure-method of the TextLine-Type is throwing an InvalidArgumentException.
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/TextLine/Type.php#L227

      This error occurs since numeric values will be returned as integer/double when parsed.
      The TextLine-Type may also allow numeric values (e.g. integer or double).

        Activity

        Hide
        Steve Konrad added a comment -
        Show
        Steve Konrad added a comment - Created a PR for this issue. https://github.com/ezsystems/ezpublish-kernel/pull/964
        Show
        André Rømcke added a comment - Latests PR: https://github.com/ezsystems/ezpublish-kernel/pull/1816
        Hide
        Andrzej Longosz added a comment -

        Merged into 6.6@f79d915

        Show
        Andrzej Longosz added a comment - Merged into 6.6@f79d915
        Hide
        Miguel das Neves Jacinto (Inactive) added a comment -

        Approved by QA

        Show
        Miguel das Neves Jacinto (Inactive) added a comment - Approved by QA

          People

          • Assignee:
            Unassigned
            Reporter:
            Steve Konrad
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 hours
              2h