"Request Publication" shown instead of "Publish Page" in Touch UI. | Community
Skip to main content
yevhenii_d
Level 2
July 10, 2018
Solved

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

  • July 10, 2018
  • 11 replies
  • 2781 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yevhenii_d

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

11 replies

smacdonald2008
Level 10
July 10, 2018

You should be seeing these options in the dropdown:

yevhenii_d
Level 2
July 10, 2018

At first, while page is loading, I click on page "Page Information":

Then I am waiting for some time, and I see the right options:

arunpatidar
Community Advisor
Community Advisor
July 10, 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

Arun Patidar
yevhenii_d
Level 2
July 10, 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

arunpatidar
Community Advisor
Community Advisor
July 10, 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

Thanks

Arun

Arun Patidar
smacdonald2008
Level 10
July 10, 2018

NIce reply!

yevhenii_d
Level 2
July 11, 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:

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

arunpatidar
Community Advisor
Community Advisor
July 11, 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

Arun Patidar
yevhenii_d
Level 2
July 11, 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

yevhenii_d
yevhenii_dAuthorAccepted solution
Level 2
July 12, 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