Forums / General / Strange user content update issue

Strange user content update issue

Author Message

Russell Michell

Sunday 21 February 2010 2:42:07 pm

Hi all,

I usually wait a day or two to post a problem as that's how long it usually takes me to delve into it and fix things, but this prob has me stumped though and I just need a new perspective :-)

I created a new user, in the Editor group who has the following roles: 'Editor Subtree (1/2)', 'Editor Subtree (1/43)', 'Member' and two custom roles.

I can login to the ezwebin UI using the new user, and I can select the pencil icon to edit an Article (for example) and I can press 'Send for publishing', all with no errors or messages in error.log when using tail -f error.log.

But nothing changes. The content is not updated, and the user cannot add an image to the page or amend text-content in the Article. The user can go through the motions without error messages, but nothing physically happens.

I added the 'Administrator' role to the user to see what would happen: Still no joy. I ensured the the 'var' directory was totally permissable to see what would happen (chmod -R 755): Still no joy. I disabled ezoe to see what would happen: Still no joy.

These things are usually silly things I've done/not-done so can anyone suggest anything else I might try?

Meanwhile, I'll continue trawling the forums :-)

Thanks for reading,
Russ

PS...interesting, I just tried the admin user via the ezwebin UI...that didn't work either...hmmmm *rubs chin*

[UPDATE]

- Admin user *can* update, I was looking at something else .... *slaps head*
- Updates to an Article are made when selecting 'Store Draft' but not when clicking either 'Publish...' or the check icon, after previewing. (preview works too)...
[/UPDATE]

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

André R.

Monday 22 February 2010 7:02:51 am

Does it work if you login to admin interface with editor user?
If so checked diff between ini settings from frontend and backend siteaccess?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Russell Michell

Monday 22 February 2010 1:39:07 pm

Thanks André, but no: Logging-in as the editor-user into the admin siteaccess can't create or modify content either. Weirdly, the content *is* being stored in the ezcontentobject table though, it's just not visible in any siteaccess.

Querying the ezcontentobject table for the misbehaving content tells me that the 'status' and 'version' columns are set to zero for content created by an Editor user, whereas content created by the admin user has status = 1.

Any other ideas as to what might be going on?

I'm using ez4.1.3, PHP 5.2.12 and MySQL 5.0.22

Thanks :-)
Russ

[UPDATE]
I reverted my DB to how it was at the beginning of February and tred things from there.

I had two users in the "Editor" group, both with the "Editor" Subtree (1/2) + Subtree (1/43)", "Member", and 2 custom roles and get this: One of them can create/modify content, the other can't. I copied their individual roles to a text file and ran a diff on them = indentical.
Is there any way, I can SQL query the DB *directly* to check these users *really do* have the same perms? It sems this is a great opportunity to see where the differences lie. At the moment, I am seriously stumped..:-(

I reverted by local SVN version of eZ back to a version before Christmas, before I had even spotted this problem, and tried the above steps again = same behaviour. It looks like this has been around a while. It may yet be something I have or haven't done...

[/UPDATE]

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Russell Michell

Tuesday 23 February 2010 12:06:42 pm

On a related subject, when I try to duplicate (copy) the working Editor-user, and then login with that user's credentials, I can no longer create/modify content-objects with that user. This is weird as you'd think duplicating a user, would "clone" them, along with their perms, but with a different username/password of course.

Would anyone care to try this out on their systems and report their findings:

- Copy a non-admin user on your system and change their user-credentials (but with same permissions)
- Login as the new user
- Are they able to perform the same tasks as the first user can?

Cheers all :-)
Russell

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Robin Muilwijk

Tuesday 23 February 2010 1:27:58 pm

Hi Russel,

I have a clean eZ Publish 4.2 installed on my localhost.

I went to User accounts in the administrator, browsed to the Editor user group, and through the context menu on my existing and working editor I performed a Copy. I then changed it's credentials and logged in with the copied account on the site itself (front end).

I was able to add content with it, it also shows on the site. Editing the just created content also works.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Russell Michell

Tuesday 23 February 2010 2:28:02 pm

Thank you so much Robin...that got me really thinking and discovered I had a workflow procedure in place that I had completely forgotton about!

I disabled that, and tried again with the new user and everything is back to normal!

Thanks again for reading everyone, I knew it was something I had or hadn't done.

OK, party over :-)

Cheers
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Nicolas Pastorino

Tuesday 23 February 2010 11:47:24 pm

Seems it was a nice party though :)

Thanks Robin for putting hands on!
Cheers guys,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Robin Muilwijk

Wednesday 24 February 2010 10:49:06 am

Next time I'll speak out my mind earlier, I'm still new to eZ compared to others, but the first thing on my mind was a custom workflow. Go figure... But you found it.

I actually had 2 possible causes; since it wasn't the account and eZ itself I was thinking of either a workflow or maybe a database issue (since copy did not work with the account).

Glad to see you found it Russel!

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk