Bug: Profiles created without a profile owner

SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
*** Edit
Skip this top post, found the reason for this behaviour in the post below.

Quote:
On a new 5.1.0 install, just the core, jrAudio and jrNova as the skin.

Cloned the admin quota, renamed it Artists, then created 5 profiles on the Artists quota.

Uploaded a song for Artist1. It appeared on the admin profile.

Looked at the other artist profiles (1 to 5), and they all list the same song.

Tried it again with another song, the same thing happened. So I have the two songs showing on the admin profile, plus on all 5 artist profiles.



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 12/13/13 02:18:43PM
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
I can see what causes this to happen.

Creating artists it is possible to create the artist and not assign a profile owner - this seems to mess things up a bit.

/profile/create
Name the artist.
Change the profile quota to Artists.
Click in the "profile owner" field but enter no text.
Click create.

The profile is created with no warning.
You get the warning if you don't click in the "profile owner" field:
Quote: You have entered an invalid value for "profile owner" - value must be a whole number greater than 0 (zero)

So clicking in that field and not entering text before submitting bypasses the validation in some way, allowing a messed up profile to be created.

Verified on Nova and Elastic


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Thanks - I'll check this out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
This is fixed in the latest User Profiles module - reload that and let me know if you see any problems.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags