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
CAM-4261 fix #164
CAM-4261 fix #164
Conversation
camunda BPM » camunda-bpm-platform #1534 SUCCESS |
Hi Filip, Thanks for the pull request. Didn't expect that after creating the ticket two days ago :) I'll have a look at it in the next days. As for tests, it would be great if you could add some assertions to https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/test/java/org/camunda/bpm/engine/test/authorization/util/AuthorizationScenarioInstance.java#L95-L99 This is used in the authorization test infrastructure we added last week (see https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/test/java/org/camunda/bpm/engine/test/authorization/jobdefinition/SetJobDefinitionPriorityAuthorizationTest.java for an example test case that uses it). Cheers, |
Hi Thorben, Thanks for pointing out the You had forgotten to add |
camunda BPM » camunda-bpm-platform #1540 UNSTABLE |
Hi Filip, I now had an in-detail look at the code you provide. Before merging, I'd like to discuss some things:
Cheers, |
Thanks for the feedback Thorben,
|
Hey Thorben, I addressed most of your bullet points. There are multiple commits and each one is for a different bullet point. I will work on the Cheers, |
camunda BPM » camunda-bpm-platform #1554 SUCCESS |
Hi Filip, Thanks for your quick response and changes to the pull request. Also thank you for the clarification on the logic in AuthorizationScenarioInstance, I get it now :)
To implement Regarding your question on exception messages: What "other type of messages" do you mean exactly? If you mean the message in the constructor Cheers, |
camunda BPM » camunda-bpm-platform #1557 FAILURE |
Hey Thorben, Thanks for the tip about Hamcrest. I did it and now it is much better. As for the other type of messages I meant about the Cheers, |
camunda BPM » camunda-bpm-platform #1558 FAILURE |
Hi Filip, I merged your pull request with commit 08d7c73 I made some smaller cosmetic and naming changes on top of your work. Most importantly, I removed the MissingAuthorization builder. We should not have such a builder in a public API package anyway (since we have to maintain it then as part of the public API) and it appears almost overkill for a class with three properties. Thank you very much for your contribution! Cheers, |
Hey Thorben, Thanks for accepting it. No problem for the builder. I will keep it in mind not to use builders for small classes in the future. Cheers, |
Save the exception properties consistently.
I modified the AuthorizationException so there is a consistent way of accessing the different number of Permissions.
Should there be some tests for this?