Skip to content

BUG: Fluid does not correctly resolve path references on FusionPathProxy #3357

Closed
@kdambekalns

Description

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

This is probably a variant of an issue thought to be fixed with #3041.

As I found out today, this does not work when you use {image.title} in Fluid and image is a FusionPathProxy:

  1. StandardVariableProvider checks for ArrayAccess, FusionPathProxy provides that. offsetExists() and offsetGet() only check for the offset directly in the partial fusion tree – there we have no title
  2. Now $subject is an object (our FusionPathProxy), but has no matching get/set/is/property
  3. Our TemplateVariableContainer is getting null back, and thus exits in – that results in null again.
  4. title ends up as null

Expected Behavior

The title should be taken from the assigned image.

Steps To Reproduce

No response

Environment

- Flow: 9.0.0-beta10
- PHP: 8.3

Anything else?

No response

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions