Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix FormElementManagerFactory breaks csrf validation (in Mvc) #4425

Conversation

noopable
Copy link
Contributor

@noopable noopable commented May 5, 2013

No description provided.

@noopable
Copy link
Contributor Author

noopable commented May 6, 2013

Please tell me why The Travis build faild anyone else ?
https://travis-ci.org/zendframework/zf2/builds/6908578
This says it is green at 5.3, 5.4 , red at 5.3.3.

@weierophinney
Copy link
Member

Looks like it's likely a segfault; I'll look into it tomorrow morning.
On May 5, 2013 7:45 PM, "Tomoaki Kosugi" [email protected] wrote:

Please tell me why The Travis build faild anyone else ?
https://travis-ci.org/zendframework/zf2/builds/6908578
This says it is green at 5.3, 5.4 , red at 5.3.3.


Reply to this email directly or view it on GitHubhttps://github.com//pull/4425#issuecomment-17462565
.

@noopable
Copy link
Contributor Author

noopable commented May 6, 2013

Now good. Perhaps there were some bad lines about null conversion.

@weierophinney
Copy link
Member

The DiMock implementation looks hacky, and makes for some tight coupling with DI. I'm not certain I like this.

I'm going to play with this to see if there's another approach we can use.

@weierophinney
Copy link
Member

@noopable Your tests have nothing to do with DI, which makes this even more... hacky... to me. I'm going to try merging just the tests and changes to Zend\Form for now.

@weierophinney
Copy link
Member

@noopable Merging just the changes to form, the tests all pass, in both 5.3.3 and other versions. I'm going to merge just those; if you can work up a test for the DI-related stuff later, I'll consider it, though, as noted, I have concerns about having DI-specific form sniffing.

weierophinney added a commit that referenced this pull request May 6, 2013
…ation

Fix FormElementManagerFactory breaks csrf validation (in Mvc)
weierophinney added a commit that referenced this pull request May 6, 2013
- No tests for that functionality, and implementation felt like unneccessary
  coupling between Form and DI.
@ghost ghost assigned weierophinney May 6, 2013
weierophinney added a commit that referenced this pull request May 6, 2013
@noopable
Copy link
Contributor Author

noopable commented May 7, 2013

@weierophinney
I don't like The DiMock implementation too.
I suppose that it would better to remove ”Aware”. Or the di component would better give up auto binding if the object was not found . The point at issue is to instantiate an "interface".

@noopable noopable deleted the hotfix/fail-csrf-element-validation branch December 13, 2013 13:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants