Update ACL in SeriesService sometimes is unable to delete xacml file

Steps to reproduce

Update ACL via SeriesService#updateAccessControl(String, AccessControlList)
Sometime you'll find a log entry like this:

Exception in thread "pool-14-thread-113" java.lang.IllegalStateException: Unable to delete file: /Users/ced/dev/eth/matterhorn/dev/versions/essex-1.3.x/felix/work/opencast/files/mediapackage/cea613de-2082-4083-acf4-a1315b0d8221/security-policy/xacml.xml.md5
at org.opencastproject.workingfilerepository.impl.WorkingFileRepositoryImpl.put(WorkingFileRepositoryImpl.java:237)
at org.opencastproject.workspace.impl.WorkspaceImpl.put(WorkspaceImpl.java:368)
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.setAccessControl(XACMLAuthorizationService.java:361)
at org.opencastproject.workflow.impl.WorkflowServiceImpl.update(WorkflowServiceImpl.java:1034)
at org.opencastproject.event.handler.WorkflowPermissionsUpdatedEventHandler$1.run(WorkflowPermissionsUpdatedEventHandler.java:274)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Status

Assignee

Christoph Driessen

Reporter

Christoph Driessen

Severity

Non Functioning

Tags (folksonomy)

Components

Fix versions

Affects versions

1.4.0

Priority

Major
Configure