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

form.submitted secure deletion #2

Merged
merged 2 commits into from
May 20, 2015
Merged

Conversation

cekk
Copy link
Member

@cekk cekk commented May 20, 2015

I've found this bug in a strange setup:
Plone 4.3.4.1 + uwosh.pfg.d2c (PloneFormGen plugin for storing data in content-types) + a versioned d2c content.

When i submit the form, the process enter 2 times in BaseControllerPageTemplate for the same request. The second time is when is assigned the controller_state.
In this case, the BaseControllerPageTemplate is called another way. The second controller delete correctly the entry in the request, but when we return to the first controller, the entry has already deleted and an exception is raised.

With this simple check we can avoid the problem.

@jensens
Copy link
Member

jensens commented May 20, 2015

jensens added a commit that referenced this pull request May 20, 2015
@jensens jensens merged commit 12167fb into master May 20, 2015
@jensens jensens deleted the submitted_secure_deletion branch May 20, 2015 11:23
jensens added a commit to plone/buildout.coredev that referenced this pull request May 20, 2015
jensens added a commit to plone/buildout.coredev that referenced this pull request May 20, 2015
@cekk
Copy link
Member Author

cekk commented May 20, 2015

Great, thanks!

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