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

Object creation does not respect attribute constraints in ezoe

    Details

      Description

      inserting an image using the ezOE popup on a xmlblock does not respect constraints defined for the attribute in the class.

      example:

      • open any article
      • in a xml block, open the popup to insert an image
      • in the name field, insert a string with more than 150 chars(the limit defined on 'image' class)
      • no error/warning shows
      • in file system and DB the object name will have the full length string

      as a control test, try to create the same image as a regular object. inserting the same string on the name invalidates publish with an error of string too long.

      check also extension/ezoe/modules/ezoe/upload.php
      around lines 140-160 several TODOs are declared just for this effect.

        Activity

        Show
        Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/908
        Show
        Damien Pobel (Inactive) added a comment - - edited Fixed in ezpublish-legacy: master: http://github.com/ezsystems/ezpublish-legacy/commit/b6f895ed1b790039f623d1476c8ffaecc6961080
        Hide
        Joao Pingo (Inactive) added a comment -

        QA Approved

        Show
        Joao Pingo (Inactive) added a comment - QA Approved

          People

          • Assignee:
            Unassigned
            Reporter:
            Paulo Bras (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 1 day, 5 hours
              1d 5h