[Fix] throw exception after logging in StrolchSystemAction
This commit is contained in:
parent
1e616f0616
commit
710a989ce5
|
@ -27,6 +27,7 @@ public class StrolchSystemAction extends SystemAction {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Failed to execute SystemAction for " + privilegeContext.getUsername() + " due to " + e
|
logger.error("Failed to execute SystemAction for " + privilegeContext.getUsername() + " due to " + e
|
||||||
.getMessage(), e);
|
.getMessage(), e);
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,7 @@ import li.strolch.privilege.model.Restrictable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* With this interface system actions, which are to be performed in an automated fashion, i.e. by cron jobs, can be
|
* With this interface system actions, which are to be performed in an automated fashion, i.e. by cron jobs, can be
|
||||||
* implemented and then the authorized execution can be delegated to
|
* implemented and then the authorized execution can be delegated to {@link PrivilegeHandler#runAs(String, SystemAction)}
|
||||||
* {@link PrivilegeHandler#runAsSystem(String, SystemAction)}
|
|
||||||
*
|
*
|
||||||
* @author Robert von Burg <eitch@eitchnet.ch>
|
* @author Robert von Burg <eitch@eitchnet.ch>
|
||||||
*/
|
*/
|
||||||
|
@ -42,9 +41,6 @@ public abstract class SystemAction implements Restrictable {
|
||||||
* This method will be called by the {@link PrivilegeHandler} when an authorized {@link Certificate} has been
|
* This method will be called by the {@link PrivilegeHandler} when an authorized {@link Certificate} has been
|
||||||
* generated to allow this action to properly validate its execution
|
* generated to allow this action to properly validate its execution
|
||||||
*
|
*
|
||||||
* TODO: I'm not really happy with this... we might want to pass the certificate and then force the action to
|
|
||||||
* validate it to get the {@link PrivilegeContext} - we don't want the {@link PrivilegeContext} to live forever...
|
|
||||||
*
|
|
||||||
* @param privilegeContext
|
* @param privilegeContext
|
||||||
* the {@link PrivilegeContext} which was generated for a valid system user
|
* the {@link PrivilegeContext} which was generated for a valid system user
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue