I am writing a tool for mass import of new users, communicating directly with the DB and the filesystem (FTP), and at the end sending a mail to the new users, everything without relying on the existing oxwall PHP code.
The tool is very flexible and allows to import avatar pictures, all kinds of custom profile questions, role and group memberships. If you are interested, it is hosted on GitHub (https://github.com/heribender/SocialDataImporter).
I have two problems and hope somebody can give me a hint how to solve them (maybe they are even correlated).
1. I am already able to import all above mentioned things. The new user can log in with the generated password. He can browse other users and view and edit his own profile, but that's all. He isn't allowed to view other members profile nor one of the standard pages. I have entered the same role association in ow_base_authorization_user_role as all other users have. What am I missing that the new users have all the same access rights as the already existing ones?
2. The imported avatar of the new user does not show up, although I uploaded the picture(s) (in the same formats and filename pattern as all other avatar pictures) to ow_userfiles/plugins/base/avatars/, and made a association in table ow_base_avatar. The new users which have such an avatar assigned do not display anything (only grey square), whereas the new users without avatar display the usual default avatar. This shows me that something goes on behind the scene for users with avatar, but the avatar cannot be loaded at the end. Maybe it is related to the same access right problem described in paragraph 1.
Any help, (also for finishing the tool generally) would be really appreciated.