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 ]
          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 ]
          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 ]

            People

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

              Dates

              • Created:
                Updated: