Comment 3 for bug 1158098

Revision history for this message
Alvin Peng (pengalvin) wrote :

Hi Andre,

Stado -> revoke update on info from public;
SQLException: ERROR: Failed to rollback transaction

We still got ERROR for the revoke operation.

Seems the problem is caused by:

SyncRevoke.java:

public void refresh() throws Exception {
        //final String method = "refresh";
        //logger.entering(method, new Object[] {});
        try {

            for (SysTable table : parent.getTableList()) {
                for (SysUser user : parent.getGranteeList()) {
                    user.removeGranted(table); <-----------------user is null
                }
                table.readPermissionsInfo();
            }

        } finally {
            //logger.exiting(method);
        }
    }

Add if(user!=null) check can fix this issue.