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

          Paulo Nunes (Inactive) created issue -
          Paulo Nunes (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          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.
          Paulo Nunes (Inactive) made changes -
          Description h5.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
          h5.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.
          Paulo Nunes (Inactive) made changes -
          Summary In Textline, is being permitted the "default value" length to be bigger than "Maximum length" In Textline fieldtype, is being permitted the "default value" length to be bigger than "Maximum length"
          Paulo Nunes (Inactive) made changes -
          Link This issue relates to EZP-25342 [ EZP-25342 ]
          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.
          Paulo Nunes (Inactive) made changes -
          Affects Version/s 16.02 [ 14501 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue is duplicated by EZP-25690 [ EZP-25690 ]
          Paulo Nunes (Inactive) made changes -
          Affects Version/s 1.4.0-beta1 [ 14528 ]
          Paulo Nunes (Inactive) made changes -
          Affects Version/s 1.7.1 [ 14681 ]
          Affects Version/s 1.7.0 [ 14616 ]
          Affects Version/s 1.8.0 [ 14682 ]
          Paulo Nunes (Inactive) made changes -
          Affects Version/s 1.7.2 [ 14690 ]
          Paulo Nunes (Inactive) made changes -
          Affects Version/s 1.9.0-rc [ 14705 ]
          Affects Version/s 1.8.1 [ 14693 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 97252 ] EZEE Development Workflow [ 108672 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          8s 1 Paulo Nunes 30/Dec/15 9:45 AM

            People

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

              Dates

              • Created:
                Updated: