"Request Publication" shown instead of "Publish Page" in Touch UI.

yevhenii_d 10-07-2018

Hi everyone!

When I open any of existing pages on author environment and click on "Page information" button (at the top left corner):

     - at first I see "Request Publication" in dropdown menu;

     - then, I close menu and open it again (after 30sec-1minute):

     - after it I see "Publish Page".

Do you have any ideas what the possible solution for such issue? Also, on the pages where we have lots of components, I am waiting for publication ~ 3-4 minutes.

AEM version: 6.2 (without service packs)

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

yevhenii_d 12-07-2018

Hi!

I found the actual problem at /libs/granite/ui/components/foundation/renderconditions/privilege/privilege.jsp

The actual trouble on line №53... After getting path trough cmp.getExpressionHelper() it returns the path with ".html" and then it tries to getResource with the ".html" and it's wrong.

I overlay jsp under /apps/ folder and remove ".html" if path contains.

If someone encounters with such problem, I hope it will be helpful.

Thanks

Yevhenii

Answers (10)

Answers (10)

Arun_Patidar
MVP
12-07-2018

Thanks for sharing the fix.

I am just wondering if this is the bug in Coral Previlege components? would it going to impact other places also as we are using privilege component as other places as well.

http://localhost:4502/libs/cq/search/content/querydebug.html?_charset_=UTF-8&query=path%3D%2Flibs%2F...

smacdonald2008​ any thoughts?

yevhenii_d 11-07-2018

This solution seems to be a workaround, but it doesn't solve the actual problem. Basically, the logic of this granite component consist in adapting resource resolver to session, getting access control manager from session, and then check if the user has privileges for certain paths. Also, I debugged the jsp (/libs/granite/ui/components/foundation/renderconditions/privilege/privilege.jsp/jcr:content) and it constantly has necessary privileges, but the UI is wrong at dropdown menu.

Thanks

Yevhenii

Arun_Patidar
MVP
11-07-2018

Then you can adapt /libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/it ems/pageinfopopover/items/list/items/requestpublish like libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/it ems/pageinfopopover/items/list/items/publish

you can overlay and changed the property of requestpublish node if you don't want to use.

Thanks

Arun

yevhenii_d 11-07-2018

Unfortunately, the renaming of dialog's buttons isn't a solution for me, because they have different behavior.

1) If you click on "Request publication" button, you'll see the following:

1525671_pastedImage_0.png

2) If you click on "Publish page" button, you'll see next:

1525672_pastedImage_1.png

Arun_Patidar
MVP
10-07-2018

Hi,

If you worried about only a title, you overlay and change the title(granite:title) of node to "Publish Page" /libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/requestpublish

Screen Shot 2018-07-10 at 7.21.58 PM.png

Thanks

Arun

yevhenii_d 10-07-2018

Hi Arun,

The actual problem, that for content authors it is confusing to see at first "Request Publication" and after some time "Publish Page". It should be always "Publish Page".

Thanks

Yevhenii

Arun_Patidar
MVP
10-07-2018

Hi,

I can also see this in 6.3 but page info node has publish and request for publish

/libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items

what is the issue here with changing action items?

Thanks

Arun