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

In Textline fieldtype, is being permitted the "default value" length to be bigger than "Maximum length"

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: Low Low
    • Resolution: Unresolved
    • Affects Version/s: 2015.11.2, 16.02, 1.4.0-beta1, 1.7.0, 1.7.1, 1.8.0, 1.7.2, 1.8.1, 1.9.0-rc
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 43

      Description

      Steps to Reproduce
      • Create one content type with a textline fieldtype, where:
        Maximum length = 4
        Default Value = 12345
      • Save the content type - The content type is saved without any warning or error

      The consequences:

      • now create one object of previous content type - the default value is pre-filled with "12345"
      • Without changing anything, try to publish the object - an error occur

      Aditional note: If after, we edit the created content type, try to publish it, then the validation is performed.

        Issue Links

          Activity

          Hide
          Joao Inacio (Inactive) added a comment -

          The issue seems to be that there is no validation of field default values when editing (saving) the ContentType, so this should apply to any fieldtype.

          Show
          Joao Inacio (Inactive) added a comment - The issue seems to be that there is no validation of field default values when editing (saving) the ContentType, so this should apply to any fieldtype.
          Hide
          Bertrand Dunogier added a comment -

          Ping Carlos Revillo. Feel like doing this one as well, since you took care of the other ones ?

          Show
          Bertrand Dunogier added a comment - Ping Carlos Revillo . Feel like doing this one as well, since you took care of the other ones ?
          Hide
          Carlos Revillo added a comment -

          Is this still an issue? I think i tried to reproduce it but couldn't... i might try it again...

          Show
          Carlos Revillo added a comment - Is this still an issue? I think i tried to reproduce it but couldn't... i might try it again...
          Hide
          Bertrand Dunogier added a comment -

          I've just tested it on master, and I've been able to enter a default value longer than the max length, indeed.

          Show
          Bertrand Dunogier added a comment - I've just tested it on master, and I've been able to enter a default value longer than the max length, indeed.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: