[TYPO3-50-general] Lost Administrator access on upgrade
Pankaj Lele
pankaj at lelesys.com
Mon Apr 15 12:23:09 CEST 2013
Hi Christian,
Before migration I had for one account roles
a:2:{i:0;s:6:"Editor";i:1;s:13:"Administrator";}.
After migration for the same account in the
typo3_flow_security_account_roles_join table i have:
TYPO3.Neos:Editor and TYPO3.TYPO3CR:Administrator roels assigned to the
account. So basically no TYPO3.Neos:Administrator role was assigned.
I investigated the migration Version20130319131400 from TYPO3.Flow
package which handles the role migration. And I found that
Administrator was mapped to TYPO3.TYPO3CR:Administrator
var_dump of the $rolesFromPolicy array
array(3)
integer 0 => string "TYPO3.Neos:Editor" (17)
integer 1 => string "TYPO3.Neos:Administrator" (24)
integer 2 => string "TYPO3.TYPO3CR:Administrator" (27)
var_dump of the $map array
array(4)
string "Editor" (6) => string "TYPO3.Neos:Editor" (17)
string "Administrator" (13) => string "TYPO3.TYPO3CR:Administrator" (27)
string "Anonymous" (9) => string "Anonymous" (9)
string "Everybody" (9) => string "Everybody" (9)
So I think this could be an issue and a special migration might be
needed in TYPO3.Neos package maybe :)
> Hi Pankaj,
>
> at least the error is not known, but could be interesting to find out if
> you can repeatedly reproduce it. Normally a role Administrator should
> just be replaced by the TYPO3.Neos:Administrator. Could you check if the
> former admin user has any roles joined after the migration?
>
> Christian
>
> On 14.04.13 15:15, Pankaj Lele wrote:
>> Hi
>>
>> I just upgraded one of the sites under progress using TYPO3 Neos to
>> latest master. Upgrade was quite successful and everything works. Only
>> thing which was not good that I no more had Administrator access in the
>> backend and I had to add the role TYPO3.Neos:Administrator again to the
>> user.
>>
>> Is this a bug in the migration Or shall i just ignore this?
>>
>> I know now the roles are prefixed with package key and are no more
>> stored with the accounts which is really cool :)
--
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele
More information about the Neos
mailing list