When using ACLs, the wrapper will fail with: Unable to get the path for '/path/to/wrapper-linux-x86-64'-Success
Basically:
wrapper is owned by user:user, chmod 770
ACL on wrapper sets 7 for user2.
When running as user2, checkIfExecutable() fails because it doesn't check ACLs.
Solution:
checkIfExecutable() would need to be updated to link against libacl and check if there is an ACL granting execute.
Workaround:
chmod 775 wrapper