Uploaded image for project: 'Opencast'
  1. MH-12610

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      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)





      Show
      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)

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              waldemarsmirnow Waldemar Smirnow
              Reporter:
              staubesv Sven Stauber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases