Skip to content

Conversation

@lkiesow
Copy link
Member

@lkiesow lkiesow commented Sep 12, 2024

The ACL configuration may not be a boolean or just any string. It must be a valid XACML. While we can't easily parse the XACML and check its correctness, we can at least check if the ACL seems to be XML.

The background for this is that with Opencast 14, acl = "false" was a valid configuration. This silently changed with Opencast 15(?) and caused Studio to upload ACL files with the contents `false", causing problems in later processing steps of Opencast. This patch makes this at least easier to spot.

The ACL configuration may not be a boolean or just any string. It must
be a valid XACML. While we can't easily parse the XACML and check its
correctness, we can at least check if the ACL seems to be XML.

The background for this is that with Opencast 14, `acl = "false"` was a
valid configuration. This silently changed with Opencast 15(?) and
caused Studio to upload ACL files with the contents `false", causing
problems in later processing steps of Opencast. This patch makes this at
least easier to spot.
Copy link
Member

@LukasKalbertodt LukasKalbertodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hu, that's weird. I never intended there to be a breaking change and it must have been the result of some other change? Or a dependency update? I'm interested in what caused this, but unless someone needs to know, I won't invest the time in tracking this down.

The patch looks good!

@LukasKalbertodt LukasKalbertodt merged commit 8113b79 into opencast:master Oct 1, 2024
@lkiesow
Copy link
Member Author

lkiesow commented Oct 1, 2024

It's been 3 weeks since I've looked at this, but iirc, it was your change introducing more typing to the code that chenged this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants