Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Page not showing up in content by label macro when view restrictions are applied

Are there any known issuses with applying both view restrictions and edit restrictions to a page created from template using confiforms. I use two separate IFTTT macros (one for restrict edit and one for restrict view) and i add two security groups.

When i create the page it is not listed in the content by label macro, but if i change the IFTTT macro from view restrictions to edit restricitions, it works fine.

Anything i might be forgetting?

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 09, 2022

Hi

This is hard to debug remotely, to be honest. But what I know is the content by label macro relies on the search index being in sync and it does check for "view" permissions

What happens when you create a same restricted page manually - does it show up in the content by label macro results?

Alex

It works fine if i create one manually. The same page also shows up if i remove the restrictions and apply them again manually.

I can send you the form setup source code, but not post it here.

And also: the form is rendered by a usermacro with parameters

@Alex Medved _ConfiForms_ 

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 09, 2022

Hi

I cannot reproduce this, but it is true that sometimes it might take some time for content macro by label to show the contents.

As noted earlier it (seems like) depends on the search index update

You can try to add an IFTTT to your form submit flow to include "Force page re-index" to ensure the page gets picked up earlier by indexer

Alex

It does not help to re-index the page i'm afraid. This is a problem which occurs (as far as i know) only when using confiforms. It is strange that everything under permissions seems to be normal.

I agree, it must be an index problem. It is not showing up in the content by label macro. I'll check again tomorrow and see if it has indexed

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 09, 2022

I can share with you a test configuration I have been using (in storage format). It includes the earlier mentioned configuration of an IFTTT to force reindex...

<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="17f87525-c5ea-4ced-90a7-54c54f353798"><ac:parameter ac:name="formName">f</ac:parameter><ac:rich-text-body>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="42d4802a-cd77-498d-8617-8e718dda6c0f"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="9bfad2c0-85bc-4f66-bf9e-30059d710767"><ac:parameter ac:name="fieldName">t</ac:parameter><ac:parameter ac:name="fieldLabel">t</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="56beaf09-5ce5-472a-9510-422d4f1a8bc6"><ac:parameter ac:name="action">Create Page</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="title">[entry.t]</ac:parameter><ac:parameter ac:name="extras2">test</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="f401e454-1376-4bf7-ba12-5816ae89bbc9"><ac:parameter ac:name="action">Restrict Page View</ac:parameter><ac:parameter ac:name="extras">[iftttResult_0.id]</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="who">[entry._user]</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="d90551b4-d4c1-4678-80d9-b3dfb53ba023"><ac:parameter ac:name="action">Force Page Re-index</ac:parameter><ac:parameter ac:name="extras">[iftttResult_0.id]</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro>
<p><ac:structured-macro ac:name="children" ac:schema-version="2" ac:macro-id="b3aa4207-5804-4b0b-8c8b-ea3bd770e2b0" /></p>

Then I have another page that uses contents by label macro to show pages by "test" label

Hope you see the same results as I do

Alex

I'll check it out. One thing i forgot to mention is that the person who creates the page can see it in the content by label macro if they are added as a user with edit permission. I find that a little strange

Still the same. And the indexing queue is empty.

The problem does not occur when i add the same security group in the ifttt for restrict view and the ifttt for restrict edit.

It only occurs when i add a different group in the restrict view ifttt.  @Alex Medved _ConfiForms_ 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events