Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix isAuthorizedPartial due to rust interface changes #256

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

amzn-mdamine
Copy link
Contributor

@amzn-mdamine amzn-mdamine commented Nov 14, 2024

There was a commit that changes the rust interface for isAuthorizedPartial method. The current PR fix the problem by making the necessary changes.

isAuthorizedPartial was never working since the rust change was made so it is safe to assume that no client use it currently.

There were unit tests for isAuthorizedPartial method however they were not being executed correctly.

In the unit test the assumePartialEvaluation return an executor that was never executed.

Reference in the code:
https://github.com/cedar-policy/cedar-java/blob/main/CedarJava/src/test/java/com/cedarpolicy/AuthTests.java#L92
https://github.com/cedar-policy/cedar-java/blob/main/CedarJava/src/test/java/com/cedarpolicy/AuthTests.java#L103

Copy link
Contributor

@cdisselkoen cdisselkoen left a comment

Choose a reason for hiding this comment

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

Great catch, thanks for this.

Signed-off-by: Mohamed Amine Ouali <mdamine@amazon.com>
Copy link

@adpaco-aws adpaco-aws left a comment

Choose a reason for hiding this comment

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

Thanks!

Marking this "ready to review" since it's still a draft PR. Or are you still working on it?

@adpaco-aws adpaco-aws marked this pull request as ready for review November 18, 2024 20:49
@amzn-mdamine
Copy link
Contributor Author

amzn-mdamine commented Nov 18, 2024

I believe the PR is ready to be merged if there are no concerns

@adpaco-aws adpaco-aws merged commit 1c09e46 into cedar-policy:main Nov 18, 2024
4 checks passed
amzn-mdamine added a commit to amzn-mdamine/cedar-java that referenced this pull request Nov 20, 2024
Signed-off-by: Mohamed Amine Ouali <mdamine@amazon.com>
@amzn-mdamine amzn-mdamine mentioned this pull request Nov 20, 2024
shaobo-he-aws pushed a commit that referenced this pull request Nov 21, 2024
Signed-off-by: Mohamed Amine Ouali <mdamine@amazon.com>
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.

3 participants