Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Private props obscure error #4887

Merged
merged 1 commit into from Feb 15, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Feb 12, 2024

…uated

instead of the original error that something went wrong

Circular reference detected while evaluating prop: "private.thepath"

is shown.

That happens because the locking didnt anticipate this case.

Upgrade instructions

Review instructions

this code reproduces the problem ... yes i know :D

prototype(YourVendor:FusionPrototype) < prototype(Neos.Fusion:Component) {
  @private {
    lol = ${true}
    throwingPath = ${private.lol && NonExistingFunctionError()}
  }

  renderer = YourVendor:FusionPrototypeWithPrivate {
    content = ${private.throwingPath}
  }
}

prototype(YourVendor:FusionPrototypeWithPrivate) < prototype(Neos.Fusion:Component) {
  renderer = ${props.content}
}

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

…uated

instead of the original error that something went wrong

> Circular reference detected while evaluating prop: "private.thepath"

is shown.

That happens because the locking didnt anticipate this case.
@kitsunet
Copy link
Member

kitsunet commented Feb 12, 2024

All I see is a function called deref burning my eyes 😂

Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big 👀 to deref but the fix seems good.

@mhsdesign
Copy link
Member Author

Found a way to reproduce it ^^ and its somehow related to #4526 but probably only by its weirdness.

Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhsdesign mhsdesign merged commit 7ec7cb7 into neos:8.3 Feb 15, 2024
10 checks passed
@mhsdesign mhsdesign deleted the bugfix/privatePropsObscureError branch February 15, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants