I also discovered that security.forcePassword() works fine with the
wrapped user object, but the security.changePassword() method does
not. I have published updates to the turbine-flux project which take
this into account in the FluxUserAction doUpdate method :-(
There is still some issue as well with security.revoke(user, group,
role) ... the implementation code looked a little strange to me (it does
three separate calls to revoke). I tried to update to only one call,
but then it removed all user/group/role assignments!
Thanks,
Jeff
On 12/06/2017 04:02 PM, Jeffery Painter wrote:
Hello everyone,
I posted an update to my turbine-flux code which now supports
permission assignment to roles. There are still some issues which I
have commented about in the doPermissions() method of the
FluxRoleAction class which I mention below.
https://github.com/jlpainter/turbine-flux/commit/4104a6bd73f26e25c9a6dd3810d6b0fb05d66147
Thanks!
Jeff
On 12/06/2017 03:14 PM, Jeffery Painter wrote:
Hi Georg,
Things are looking much better. I am working on the role/permission
implementation stuff in the flux library. Using your updated Turbine
4.0.1 snapshot and the flux-security snapshot release.
I was trying to figure out what you did to make TurbineUser work to
try and fix issues I am now facing with TurbinePermission, but I have
not dug too deep there yet.
The following method is giving me an exception in the security
manager...
Permission perm = security.getPermissionByName(permName);
the exception looks similar to the wrapper issue we had with
TurbineUser...
org.apache.torque.TorqueException:
org.apache.fulcrum.security.util.DataBackendException:
org.apache.turbine.fluxtest.om.TurbinePermissionPeerImpl cannot be
cast to org.apache.fulcrum.security.torque.peer.Peer.
The peer class
org.apache.turbine.fluxtest.om.TurbinePermissionPeerImpl should
implement interface
org.apache.fulcrum.security.torque.peer.TorqueTurbinePeer
of generic type <org.apache.turbine.fluxtest.om.TurbinePermission>.
The methods for security.getRole() and security.getGroup() seem to be
working fine, just permission is giving me trouble. I will post my
updates soon back to github so you can see where I am stuck.
Also, I submitted an update to the Turbine.java class as the
input.encoding was not getting set properly when trying to put in my
own value in the TR.props file. Hopefully I put the fix in the right
place. It is working for me now and I can once again use UTF-8
encoding :-)
Just wondering if there might be interest in just changing the
default encoding to UTF-8 instead of ISO-8859-1 which is what it is
now... not sure why most would not want to use UTF-8 these days.
Thanks,
Jeff
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]