t3hk0d3/PermissionsEx — Issue #258: PEX and SimpleChestLock - PEX doing wired things
Author: Gilbertus
Created: 2012-02-13 15:09:13+00:00
State: open

I have problem with PermissionsEx and SimpleChestLock combination.
All door, chest, furnaces, etc. are not accessible by default. Its caused by SimpleChestLock permission simplechestlock.limited "If given, denies access to anything but items locked in your name". Since stuff don't have owner by default in SimpleChestLock they cannot be use any more. The problem is that happens even if there completely no SimpleChestLock permission given. PEX wrongly finds simplechestlock.* somehow. This is log from debug mode:
Code:

2012-02-12 01:13:31 [INFO] User Gilbertus checked for "simplechestlock.*", no permission found
2012-02-12 01:13:31 [INFO] User Gilbertus checked for "simplechestlock.limited" = true, found from "simplechestlock.*"
2012-02-12 01:13:31 [INFO] User Gilbertus checked for "simplechestlock.ignoreowner" = false, found from "simplechestlock.*"

I have to explicitly give (negative) -simplechestlock.limited to everybody so they can use any non-locked stuff.

To reproduce you can just make clean bukkit 1.1-R3 install, log in, craft some chest and door. Then install both plugins PermissionsEx (PEX) v1.18 and SimpleChestLock 0.15.3, no changes in config needed. After this try to open chest and door.

Answer from SimpleChestLock owner:
http://forums.bukkit.org/threads/sec-mech-simplechestlock-0-15-3-simplified-chest-locking-1-1-r3.17557/page-18#post-961126

It seems that its PEX bug. One thing is why PEX states that user have permission I didn't give (note that in first line it says user don't have it, and in second line it says that simplechestlock.limited is found from it).
Second thing is that simplechestlock.* shouldn't give simplechestlock.limited at all. It seems that PEX overwrite * and give all child nodes.