Skip to content

"Failed to execute the [groovy] macro" error which prevents users to login with the application #19

Description

@ilieandriuta

Environment: Windows 11 Pro 64bit, Firefox 98, using an instance of XWiki 14.1 on Tomcat 9.0.59/ PostgreSQL 14 (tested also on XWiki 13.10.3 Jetty/HSQLDB) on Java 11 and Java 17 from Oracle with Office365 Integration (Pro) 1.9.1

STEPS TO REPRODUCE

  1. Go to Administer Wiki > Other > Office365 and fill the Tenant name, Client ID and Secret Key corresponding to the application from Azure Portal
  2. Edit a page in wiki/source mode
  3. Insert {{office365 /}} macro
  4. Click Save & View

EXPECTED RESULTS

The user is asked to login to Microsoft365.

ACTUAL RESULTS

An error is displayed only in the browser and the user cannot login:

Failed to execute the [groovy] macro. Cause: [class java.lang.String cannot be cast to class java.util.List (java.lang.String and java.util.List are in module java.base of loader 'bootstrap')]. Click on this message for details.

Full stacktrace is available here: https://up1.xwikisas.com/#78RiUGVIB0NujZBTyPy8Cg

The issue reproduced also on XWiki 13.10.3. However, I've tested with Office365 Integration (Pro) 1.8 and the issue could not be reproduced.

OfficeOAuth_Error

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions