-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
XWIKI-22798: The code macro is missing a required rights analyzer #3810
base: master
Are you sure you want to change the base?
Conversation
* Add a required rights analyzer for the code macro. * Add a test.
Don't you want to also cover Actually, I'm wondering if we should have something more generic, which is checking all macro parameters descriptors for the type |
The problem is that the impact of those parameters is quite different depending on the macro. For the code macro, the content of the script doesn't matter. For the |
My point was more that this macro parameter type is generic enough to be matched as something that makes the macro require script right (if using the script type), no so much as "a generic check is enough to cover all use cases". Maybe that generic check of that parameter type should be in some default macro analyzer which is used only if no specific analyzer was found for the given macro (did no check if we have the concept of default analyzer currently but I vaguely remember something like this) ? I just feel that it's very easy for a new macro to forget to provide an analyzer, and I'm petty sure this will happen all the time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, it looks OK for the code macro.
Jira URL
https://jira.xwiki.org/browse/XWIKI-22798
Changes
Description
Clarifications
Screenshots & Video
Executed Tests
Expected merging strategy