-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
@@personal-information breaks after portrait was uploaded in Plone 5.1.5 #2709
Comments
The problem was introduced in plone/plone.formwidget.namedfile#32 where the case that the filename is None is not handled. |
Also currently it seems that the upload_map (IFileUploadTemporaryStorage) always keeps a reference to the previously stored value. Even after restarting the instance and even after |
@thet ping |
…t is a POST request. Fixes auto csrf error in site-controlpanel (plone/Products.CMFPlone#2628) and personal-information (plone/Products.CMFPlone#2709) page.
Branch: refs/heads/master Date: 2019-03-22T22:51:01+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@efdf292 Only use the new feature for keeping an already uploaded image when it is a POST request. Fixes auto csrf error in site-controlpanel (plone/Products.CMFPlone#2628) and personal-information (plone/Products.CMFPlone#2709) page. Files changed: A news/2628.bugfix M plone/formwidget/namedfile/widget.py Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-25T14:10:32+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@b77b76e Add more test isolation to widgets.rst. With a new request, we should instantiate a new widget and call update and extract on it. Otherwise for example a file_upload_id can linger from a previous call. Files changed: M plone/formwidget/namedfile/widget.rst Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-25T14:46:37+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@3975588 Fixed Py23DocChecker. There was a small mistake on Python 2: we basically set 'got = want', which meant the doctests always passed... Files changed: M plone/formwidget/namedfile/tests.py M plone/formwidget/namedfile/widget.rst Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-26T12:43:01+01:00 Author: Jens W. Klein (jensens) <jk@kleinundpartner.at> Commit: plone/plone.formwidget.namedfile@846f5f4 Merge pull request #38 from plone/maurits-issue-2813-plone-protect Only keep already uploaded image when it is a POST request Files changed: A news/2628.bugfix M plone/formwidget/namedfile/tests.py M plone/formwidget/namedfile/widget.py M plone/formwidget/namedfile/widget.rst
Branch: refs/heads/master Date: 2019-03-22T22:51:01+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@efdf292 Only use the new feature for keeping an already uploaded image when it is a POST request. Fixes auto csrf error in site-controlpanel (plone/Products.CMFPlone#2628) and personal-information (plone/Products.CMFPlone#2709) page. Files changed: A news/2628.bugfix M plone/formwidget/namedfile/widget.py Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-25T14:10:32+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@b77b76e Add more test isolation to widgets.rst. With a new request, we should instantiate a new widget and call update and extract on it. Otherwise for example a file_upload_id can linger from a previous call. Files changed: M plone/formwidget/namedfile/widget.rst Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-25T14:46:37+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.formwidget.namedfile@3975588 Fixed Py23DocChecker. There was a small mistake on Python 2: we basically set 'got = want', which meant the doctests always passed... Files changed: M plone/formwidget/namedfile/tests.py M plone/formwidget/namedfile/widget.rst Repository: plone.formwidget.namedfile Branch: refs/heads/master Date: 2019-03-26T12:43:01+01:00 Author: Jens W. Klein (jensens) <jk@kleinundpartner.at> Commit: plone/plone.formwidget.namedfile@846f5f4 Merge pull request #38 from plone/maurits-issue-2813-plone-protect Only keep already uploaded image when it is a POST request Files changed: A news/2628.bugfix M plone/formwidget/namedfile/tests.py M plone/formwidget/namedfile/widget.py M plone/formwidget/namedfile/widget.rst
Fixed in plone/plone.formwidget.namedfile#38 |
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
What I expect to happen:
Forms should submit successfully.
What actually happened:
Form breaks with this stacktrace:
When choosing the different or same image to upload, the form works just fine. But if portrait is left changed, the error comes again.
What version of Plone/ Addons I am using:
Vanilla Plone 5.1.5
Note: It works however in Plone 5.1.2!
The text was updated successfully, but these errors were encountered: