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

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

    XMLWordPrintable

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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            s-konrad s-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