"Use global policies" in node edit should be "Use default policies"

Bug #767257 reported by Andrea Grandi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AuthPuppy
Confirmed
Undecided
gbastien
Ap-node-custom-plugin
Confirmed
Undecided
gbastien

Bug Description

Summary: I've just noticed that "Global Policies" are not applied to any node. I've created a policy called "Validazione" and set it to allow a maximum of 10 minutes of navigation to users who are in "Validation" state, so they won't be able to navigate more than 10 minutes. I've just discovered that this policy is not applied to any of the nodes.

The test I have done:

1) create a user test0101 and set its status to "Validation".

2) connect to a node who uses "Global Policies" and wait 10 minutes. After 10 minutes the user is still able to browse webpages.

Please note that even if "Validazione" is a global policy, it appears available in local policies.
In the attachment you can see two things: the first one is how I've configured the policy, the second one is the configuration of one node.

Workaround: if you edit a node, unselect "Use global policies", select "Validazione" from local policies it WORKS.

Anyway this is clearly a bug.

Revision history for this message
Andrea Grandi (andreagrandi) wrote :
Revision history for this message
Andrea Grandi (andreagrandi) wrote :
Revision history for this message
gbastien (gbastien02) wrote :

Hmm actually, it is rather a confusing use of the term "Use global policies"...

You are also using the plugin apNodeCustomPlugin and for this plugin you selected "global policies", but I guess it should read "default policies", which are policies that are used wherever you do not overwrite this choice for a node. I'll change that term in a next release of the nodeCustomPlugin.

But in the node edit page, the checkbox should be interpreted as "Use default policies" and has nothing to do with the global scope of the policies.

summary: - Global policies are not applied at all
+ "Use global policies" in node edit should be "Use default policies"
Changed in authpuppy:
status: New → Confirmed
assignee: nobody → gbastien (gbastien02)
Revision history for this message
Andrea Grandi (andreagrandi) wrote :

I forgot to include apNodeCustomPlugin configuration image. You can find it attached in this comment. Maybe I'm using it in a wrong way?

Revision history for this message
Andrea Grandi (andreagrandi) wrote :

and another question: where "default policies" are defined then?
I did think that if I defined a "global" policy it was used as global by all nodes.
Thanks.

Revision history for this message
gbastien (gbastien02) wrote :

If you use the apNodeCustomPlugin and check the allow overwrite policies per node checkbox, you need to specify which of the policies will be used by default for node for which they are not overwritten, so you should check the Validazione policy on that last screenshot.

Defining a policy with scope "global" just means that the time or data limits are for all nodes _when_ that policy apply.

Revision history for this message
Andrea Grandi (andreagrandi) wrote :

@gbastien: selecting "Validazione" on the configuration page you told me it works!
You can mark this bug as "Invalid" for me, since it was my fault. Maybe we could make this thing more clear for users, even other people could make the same mistake. Thanks :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.