Skip to content

Commit

Permalink
disable csrf protection for upgrade (may not have right keyring yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 17, 2014
1 parent 63a6010 commit 18024e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Products/CMFPlone/browser/admin.py
Expand Up @@ -255,6 +255,9 @@ def __call__(self):
form = self.request.form
submitted = form.get('form.submitted', False)
if submitted:
# CSRF protect. DO NOT use auto CSRF protection for upgrading a site
alsoProvides(self.request, IDisableCSRFProtection)

pm = getattr(self.context, 'portal_migration')
report = pm.upgrade(
REQUEST=self.request,
Expand Down

1 comment on commit 18024e4

@mister-roboto
Copy link

Choose a reason for hiding this comment

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

TESTS FAILED
Mr.roboto url : http://jenkins.plone.org/roboto/get_info?push=4cc28d273ab74e2dbb3af0dd5ae9373a
plone-5.0-python-2.7 [FAILURE]

Please sign in to comment.