Collection items have canonical routes like /collection/1/item/1, but we don't have anything that verifies that collection_item 1 belongs in collection 1. So /collection/2/item/1 would return the same collection_item, even though it isn't in collection 2.

Not sure how to implement this. Perhaps an additional _custom_access requirement on the route?

Comments

jeffam created an issue. See original summary.

  • jeffam committed b622b4c on 2.x
    Issue #3203906: Canonical routes for collection items don't ensure that...
jeffam’s picture

Status: Active » Fixed

  • jeffam committed 9d9686d on 2.x
    Revert "Issue #3203906: Canonical routes for collection items don't...
  • jeffam committed e01486c on 2.x
    Issue #3203906: Restrict routes to collection items when collection and...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.