#37 — PlonePAS update with Plone3.0.3 deletes member portraits and member data
by
Marc Schroeder
—
last modified
Jan 08, 2009 06:02 PM
| State | Unconfirmed |
|---|---|
| Version: | 3.1 |
| Area | PlonePAS |
| Issue type | Patch |
| Severity | Medium |
| Submitted by | Marc Schroeder |
| Submitted on | Nov 21, 2007 |
| Responsible |
—
|
| Target release: |
—
|
Upgrading a site from Plone 2.5.4 to 3.0.3, I notice that the reinstalling PlonePAS (from v. 2.4 to 3.1) from the portal_quickinstaller deletes all member profiles. In addition, the number of members shown in the "contents" tab of portal_memberdata is 0.
It turns out that this can be fixed as follows:
in PlonePAS/Extensions/Install.py:install(), enable the use of grabUserData and grabGroupData (and the corresponding restore) also for the case EXISTING_PAS. Here is a diff:
diff /home/marc/Plone-3.0.3/zinstance/Products/PlonePAS/Extensions/Install.py Extensions/Install.py
896a897,902
> else:
> userdata = grabUserData(portal, out)
> groupdata, memberships = grabGroupData(portal, out)
>
>
>
910,912c916,918
< if not EXISTING_PAS:
< restoreUserData(portal, out, userdata)
< restoreGroupData(portal, out, groupdata, memberships)
---
> # if not EXISTING_PAS:
> restoreUserData(portal, out, userdata)
> restoreGroupData(portal, out, groupdata, memberships)
With this change, the tool updated ok; the portraits are still there, and the content tab shows the right number of users.
It turns out that this can be fixed as follows:
in PlonePAS/Extensions/Install.py:install(), enable the use of grabUserData and grabGroupData (and the corresponding restore) also for the case EXISTING_PAS. Here is a diff:
diff /home/marc/Plone-3.0.3/zinstance/Products/PlonePAS/Extensions/Install.py Extensions/Install.py
896a897,902
> else:
> userdata = grabUserData(portal, out)
> groupdata, memberships = grabGroupData(portal, out)
>
>
>
910,912c916,918
< if not EXISTING_PAS:
< restoreUserData(portal, out, userdata)
< restoreGroupData(portal, out, groupdata, memberships)
---
> # if not EXISTING_PAS:
> restoreUserData(portal, out, userdata)
> restoreGroupData(portal, out, groupdata, memberships)
With this change, the tool updated ok; the portraits are still there, and the content tab shows the right number of users.
- Steps to reproduce:
- Not sure if this would happen to a pristine Plone 2.5.4; my site goes back to pre-Plone 2.0 times, and has undergone four years of upgrading and maintaining.
Added by
(anonymous)
on
Dec 19, 2007 11:33 PM
http://www.nabble.com/Plone[…]nstall-to14403353s6745.html
No responses can be added.
If you can, please log in before submitting a reaction.
