core icon indicating copy to clipboard operation
core copied to clipboard

Remote Publish on folder cause an "User XXX does not have Publish Permission over asset with Identifier XXX"

Open graz1an0 opened this issue 13 years ago • 15 comments

The identifier is the folder identifier and the user is the folder creator. In this folder there are only html pages and file asset created/published by the same user (or users of the same role).

Does the folder has the "publish permissions"?

graz1an0 avatar Mar 25 '13 12:03 graz1an0

No but I do not get this. Are you sure the user exists on the Remote End? Same user? Same id etc..

jtesser avatar Mar 25 '13 12:03 jtesser

Yes sure...the problem is on "Remote Publish" on sender side...this bundle is not created and not puts into the publishing queue

graz1an0 avatar Mar 25 '13 12:03 graz1an0

I might need some more help here or u to debug a bit as I am unable to reproduce this currently. I am able to push folders that exist and do not exist with files and pages.

jtesser avatar Mar 25 '13 12:03 jtesser

Ok...I create a new empty folder...with the same user I do "Remote Publish" and this is the error: 2013-03-25 13:35:59,947 INFO com.dotcms.publisher.business.PublisherAPIImpl - User: dotcms.org.2820 does not have Publish Permission over asset with Identifier: b312b46a-2aad-4519-8f6d-bdbc6815b627

graz1an0 avatar Mar 25 '13 12:03 graz1an0

this is the folder identifier

graz1an0 avatar Mar 25 '13 12:03 graz1an0

i meant you may need to get me steps from a starter site to reproduce. As you know I have no access to your data. Is this error thrown on the Receiver Side or Sender Side. I thought you meant Receiver as that would be the Remote

jtesser avatar Mar 25 '13 12:03 jtesser

No this error is on Sender Side before create bundle...in fact into the publishing queue there isn't. By the way noone messages appear to me on portlet, I must read the logs

graz1an0 avatar Mar 25 '13 12:03 graz1an0

I mean, this is the permissions on folder that I want to publish. My user is into the second role into the list. img

graz1an0 avatar Mar 25 '13 12:03 graz1an0

@graz1an0 I will retest but I was unable to reproduce. So again I need you to hook up locally to debug or tell me from a starter site how to reproduce.

jtesser avatar Mar 25 '13 12:03 jtesser

A good free tool here that we use is called Jing- http://www.techsmith.com/jing.html. You can capture and share screenshots and video that helps when trying to describe an issue.

dotcmsCodeReview avatar Mar 25 '13 13:03 dotcmsCodeReview

@jtesser I create a new host, assigned all permissions on my role to this new host, create a new folder with this user, remote publish on this folder and the problem still persist.

Do you thing we have some different code? I mean we update everything the last week (thursday).

graz1an0 avatar Mar 25 '13 13:03 graz1an0

  1. Create a new host (for example DEMO_GRAZIANO)
  2. Create new Role (for example RUOLO_GRAZIANO) that has all privileges on this new host (on cascade) all privileges except the edit permissions
  3. Add an user into this role (this user is only in this role)
  4. login with this new user, create a folder (for example first_folder)
  5. at this point, no matter if I upload some file assets into this folder or not, when I right click on folder and do "Remote Publish" appear to me the popup and when I do "Save" nothing happen...It seems that everything goes fine but into the publishing queue there isn't and into the log file I see "User MY_USER does not have Publish Permissions on asset with Idenfier: FOLDER_IDENTIFIER" that's all... with a new clean and updated dotCMS instance

wezell avatar Mar 27 '13 14:03 wezell

The issue is that if you are not a cms admin, we are looking for "PUBLISH" permissions on a folder in order to remote publish it - these do not exist - folder do not have PUBLISH permissions.

wezell avatar Mar 27 '13 15:03 wezell

yea I was thinking that. Easy fix

Thanks, Jason S. Tesser Director, Support Services dotCMS, Inc. T: 305.858.1422 x7003 http://twitter.com/dotCMS www.dotcms.com

On Wed, Mar 27, 2013 at 11:07 AM, Will Ezell [email protected]:

The issue is that if you are not a cms admin, we are looking for "PUBLISH" permissions on a folder in order to remote publish it - these do not exist

  • folder do not have PUBLISH permissions.

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2413#issuecomment-15528789 .

jtesser avatar Mar 27 '13 15:03 jtesser

added limited user folder push to script tests

DeanGonzalez avatar Apr 11 '13 16:04 DeanGonzalez