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

adding locations: eZContentOperationCollection::addAssignment never returns false

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2011.11, 4.6.0
    • Legacy > Workflows, Misc
    • None

    Description

      The eZContentOperationCollection::addAssignment method never returns a "falied" status, even when it does not actually add the desired location because the user has not enough permissions to do so.

      This is bad because:
      . it does not allow a caller to check if operation was succesfull
      . it will happily run a workflow on the post-add-location trigger even if the location was not added

      Also no error is returned if the new location is not added because it already exists

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: