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
Missing upgrade step in Plone 5.1 #2331
Comments
Confirmed. Applying that
You would lose a previous setting of |
@sneridagh So would the probable fix for this issue be an addition of the highpixeldensity_scales record to https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/profiles/dependencies/registry.xml? |
I think this is related. We updated a 5.1b3 site to 5.1, purged Using |
@mrsaicharan1 No that would not be enough, and also not necessary. We need an upgrade step in @abosio: Did you override the version pin for |
I was thinking the same; I also took a look at the code and saw no traces of that attribute. |
Branch: refs/heads/master Date: 2018-03-08T23:51:21+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.app.upgrade@19e4f1d Rename retina_scales to highpixeldensity_scales. Fixes plone/Products.CMFPlone#2331 Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml Repository: plone.app.upgrade Branch: refs/heads/master Date: 2018-03-10T10:09:15+01:00 Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com> Commit: plone/plone.app.upgrade@c99b60b Merge pull request #152 from plone/retina-rename-issue-2331 Rename retina_scales to highpixeldensity_scales. Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml
Branch: refs/heads/master Date: 2018-03-08T23:51:21+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.app.upgrade@19e4f1d Rename retina_scales to highpixeldensity_scales. Fixes plone/Products.CMFPlone#2331 Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml Repository: plone.app.upgrade Branch: refs/heads/master Date: 2018-03-10T10:09:15+01:00 Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com> Commit: plone/plone.app.upgrade@c99b60b Merge pull request #152 from plone/retina-rename-issue-2331 Rename retina_scales to highpixeldensity_scales. Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml
Branch: refs/heads/master Date: 2018-03-08T23:51:21+01:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/plone.app.upgrade@19e4f1d Rename retina_scales to highpixeldensity_scales. Fixes plone/Products.CMFPlone#2331 Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml Repository: plone.app.upgrade Branch: refs/heads/master Date: 2018-03-10T10:09:15+01:00 Author: Gil Forcada Codinachs (gforcada) <gil.gnome@gmail.com> Commit: plone/plone.app.upgrade@c99b60b Merge pull request #152 from plone/retina-rename-issue-2331 Rename retina_scales to highpixeldensity_scales. Files changed: A plone/app/upgrade/v51/profiles/to_511/registry.xml M CHANGES.rst M plone/app/upgrade/v51/configure.zcml M plone/app/upgrade/v51/profiles.zcml
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
Missing upgrade step in Plone 5.1
What I did:
Upgrading from 5.1rc1 (version originally installed) to 5.1 triggered:
KeyError: 'Interface Products.CMFPlone.interfaces.controlpanel.IImagingSchema defines a field 'highpixeldensity_scales', for which there is no record.'
when accessing image scales. Checked out on the IImagingSchema, and the record was not there. I fixed it by executing manually this upgrade step (that indeed it exists for 5.1b2 to 5.1b3):
plone/app/upgrade/v51/profiles/to_beta3/registry.xml
Right now I can't take a look myself into this if someone can fix it quickly would be great.
What I expect to happen:
The scale record should be created on site's registry. Could happen to other versions to 5.1 as well.
What actually happened:
It errored :)
What version of Plone/ Addons I am using:
Plone 5.1, plone.restapi
/cc @tisto
The text was updated successfully, but these errors were encountered: