We're updating the issue view to help you get more done. 

Navigating through events in the event details modal causes failing attempts to save ACLs

Steps to reproduce

Steps to reproduce:
1. Create several Events
2. Opencast Event Details
3. Use the left/right arrows to navigate through events

Actual Results:
A message "The access rules have been saved" appears. On the admin node log, an exception is reported.

Expected Results:
Navigating through events on the event details modal should not cause to save ACLs even if they were not touched

Workaround (if any):
I think it could be ignored

Exception seens:

2017-12-13 22:59:14,167 | ERROR | (XACMLAuthorizationService:393) - Exception occured: {}
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)[:1.8.0_65]
at java.util.ArrayList.get(ArrayList.java:429)[:1.8.0_65]
at org.opencastproject.authorization.xacml.XACMLUtils.parseXacml(XACMLUtils.java:129)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.loadAcl(XACMLAuthorizationService.java:388)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.getAcl(XACMLAuthorizationService.java:331)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.access$000(XACMLAuthorizationService.java:87)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService$2.apply(XACMLAuthorizationService.java:149)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService$2.apply(XACMLAuthorizationService.java:144)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.withContextClassLoader(XACMLAuthorizationService.java:239)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.authorization.xacml.XACMLAuthorizationService.getAcl(XACMLAuthorizationService.java:144)[48:matterhorn-authorization-xacml:4.0.0.SNAPSHOT]
at org.opencastproject.scheduler.impl.SchedulerServiceImpl.updateEventInternal(SchedulerServiceImpl.java:755)
at org.opencastproject.scheduler.impl.SchedulerServiceImpl.updateEvent(SchedulerServiceImpl.java:627)
at org.opencastproject.adminui.endpoint.AbstractEventEndpoint.applyAclToEvent(AbstractEventEndpoint.java:706)

Status

Assignee

Waldemar Smirnow

Reporter

Sven Stauber

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

4.0

Priority

Major