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

(Public API) relation list filed type does not validate object_id existence

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 5.1-dev
    • Fix Version/s: QA tracked issues
    • Labels:
      None
    • Environment:

      RHEL 6.3
      PHP 5.3.3
      Mysql 5.1.61

      Description

      Validating in content type creation

      If i try to validate 'selectionDefaultLocation' when creating a relation list field type i don't get any exception, and i get the following error in ezpublish debug

      Error: eZTemplate   Feb 21 2013 11:33:18
      Cannot retrieve attribute of a NULL
      

      https://gist.github.com/jpingo/9da209ded0918c2e704b#file-gistfile1-php-L52

      Validating in content creation

      If i try to validate the creation of an object using a non existing location in the object relation list field i get the following exception

      There was 1 error:
       
      1) eZPublishAPIRelationsList::testTC1500CreateAnObjectRelationsListObject
      Exception: Could find Content with id'sarray (
        0 => 999,
      )
      

      This does not seem to be the format for the API exceptions ... is there something missing?

      https://gist.github.com/jpingo/9da209ded0918c2e704b#file-gistfile1-php-L221

        Issue Links

          Activity

          Hide
          Marcos Loureiro (Inactive) added a comment -

          I've retested for certification purpose and verified that it still doesn't validate, however the error is different:

          Error: eZTemplate 	Apr 18 2013 15:25:02
           
          Cannot retrieve attribute of a NULL

          Show
          Marcos Loureiro (Inactive) added a comment - I've retested for certification purpose and verified that it still doesn't validate, however the error is different: Error: eZTemplate Apr 18 2013 15:25:02   Cannot retrieve attribute of a NULL

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Pingo (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: