Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ignasi35
Copy link
Member

@ignasi35 ignasi35 commented Dec 10, 2020

When adding defaultFormBinding: FormBinding as a val we introduced a circular dependency on DI for users of InjectedController (which is discouraged).

The problem becomes more apparent because webjars-play provides some tools which use InjectedController.

See https://travis-ci.com/github/playframework/play-samples/jobs/457151496

Note this issue affects both Java and Scala users as long as there's an intermediate piece on the DI cake that uses InjectedController and even if there's not use of forms.

This fixes a regression introduced in Play 2.8.6 and 2.7.8.

@ignasi35
Copy link
Member Author

@Mergifyio backport master

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2020

Command backport master: pending

Waiting for the pull request to get merged

@ignasi35
Copy link
Member Author

@Mergifyio backport 2.7.x

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2020

Command backport 2.7.x: pending

Waiting for the pull request to get merged

Copy link
Contributor

@ennru ennru left a comment

Choose a reason for hiding this comment

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

LGTM.

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2020

Command backport 2.7.x: success

Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2020

Command backport master: success

Backports have been created

ennru added a commit that referenced this pull request Dec 11, 2020
Makes val lazy to prevent circular dependency on DI (bp #10591)
@ennru ennru added this to the 2.8.7 milestone Dec 14, 2020
mergify bot added a commit that referenced this pull request Jan 12, 2021
Makes val lazy to prevent circular dependency on DI (bp #10591)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants