-
Notifications
You must be signed in to change notification settings - Fork 3
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
Groovy class syntax can cause compatibility issue with extension "Wiki Link URL Normalizer" #13
Comments
Considering that this workaround has nothing to do with the application (i.e. the application can't do anything about it probably), I suggest we ask the advice of some persons that has an access to where this happened. I think that looking at the DB is the necessary thing. Paul |
@polx no, this is a bug in the Office365 application: it should not mark with the XWiki 2.1 syntax the wiki pages that are not expected to contain XWiki 2.1 syntax. In this case the |
is it ok even if the syntax is not supported in the wiki? |
Plain 1.0 syntax is supported (bundled in XWiki Standard as core extension). You don't see it in the drop down list because there's a blacklist in the Administration that excludes it, probably because we considered it too technical. Basically the administrator can choose which syntaxes to list to the end user, because many syntaxes are quite technical, not to be used by the end users when creating new wiki pages. |
Mmmmh, let me understand a bit deeper because this is new to me and definitely happens in other places too: The content may be changed if the syntax is recognized as something that can be manipulated and some automatic processing happens such as moving a page with an actualisation of all links to this page. In this case, only At least Google Apps and Office365 are then touched. Probably any that uses parseGroovyFromPage. |
3 x Yes :) |
Thanks. This should be spread somehow. I searched a bit for parseGroovyFromPage on GitHub and there's hundreds of them. All of them may be affected. |
Version 1.6 is released with this issue resolved. |
Noticed the following issue on a wiki using XS 10.11.8 (did not manage to reproduce locally):
Results:
{{Failed to execute the [groovy] macro. Cause: [startup failed: script15992051810231037558333.groovy: 169: expecting ')', found '~' @ line 169, column 12. ~|| request.getParameterMap().containsKey(AZURE_PARAM_ID_TOKEN) ^ 1 error ]. Click on this message for details.}}
def containsAuthenticationData(request) { def map = request.getParameterMap(); return request.getMethod().equalsIgnoreCase("POST") && (request.getParameterMap().containsKey(AZURE_PARAM_ERROR) ~|| request.getParameterMap().containsKey(AZURE_PARAM_ID_TOKEN) ~|| request.getParameterMap().containsKey(AZURE_PARAM_CODE)); }
Expected result: the Office365 macro is displayed without error
The text was updated successfully, but these errors were encountered: