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

Content View breaks when providing location id as param

    Details

      Description

      If you somehow provide location id to Content View, then it will throw the following now after ContentProxy feature was added in 2.2:

      Argument 'Location' is invalid: Provided location does not belong to selected content as requested via contentId parameter
      

      This for instance break Step 3 in Bike Ride tutorial where you are asked to enter following url, last parameter is optional so removing it makes it work:
      http://<yourdomains>/view/content/<ContentId>/<language>/full/true/<LocationId>

      Culprit is the following code which is wrongly using struct check:

      if (isset($parameters['contentId']) && $location->contentId !== $parameters['contentId']) {
      

        Activity

        André Rømcke created issue -
        André Rømcke made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        André Rømcke made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        André Rømcke made changes -
        Status InputQ [ 10001 ] Development Review done [ 10028 ]
        Fix Version/s 2.3.3 [ 15096 ]
        Fix Version/s 2.2.4 [ 15083 ]
        Fix Version/s 2.4.0-beta1 [ 15089 ]
        André Rømcke made changes -
        Status Development Review done [ 10028 ] Documentation Review done [ 10011 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: