Content
500 Error when creating a new XWiki integration
Added by Filip Sagen 15 days ago
I'm trying out the new XWiki integration feature but getting stuck at configuration. When running the "Connect XWiki instance account" I get the consent form from XWiki and choose "accept" but then I get the following error display in the UI:
I've enabled debug on my OpenProject instance and the logs I can see that seems relevant are the following:
web-1 | 2026-08-05T07:16:17.068731308Z E, [2026-08-05T07:16:17.068058 #95] ERROR -- : [1dcd9340-f1d1-404b-a080-d061d5715537] user=4 undefined method 'each' for an instance of Wikis::Adapters::Results::Error: undefined method 'each' for an instance of Wikis::Adapters::Results::Error
web-1 | 2026-08-05T07:16:17.069313245Z D, [2026-08-05T07:16:17.068133 #95] DEBUG -- : [1dcd9340-f1d1-404b-a080-d061d5715537] [NoMethodError] undefined method 'each' for an instance of Wikis::Adapters::Results::Error: app/controllers/oauth_clients_controller.rb:141:in 'OAuthClientsController#set_oauth_errors'; app/controllers/oauth_clients_controller.rb:64:in 'OAuthClientsController#callback'
. . .
web-1 | 2026-08-05T07:16:17.204748665Z I, [2026-08-05T07:16:17.204459 #95] INFO -- : [1dcd9340-f1d1-404b-a080-d061d5715537] method=GET path=/oauth_clients/openproject-1fd27c16ea193170/callback format=html controller=OAuthClientsController action=callback status=500 allocations=68211 duration=314.09 view=108.76 db=39.88 user=4
On the Xwiki-instance, I only see the following error:
xwiki-postgres-tomcat-web | 2026-08-05T07:16:17.036594043Z 2026-08-05 07:16:17,031 [http-nio-8080-exec-58 - http://xwiki.domain.tld/rest/] WARN nticationFailureLoggerListener - Authentication failure with login [null]
The only part where I'm not sure if I got the configuration done correctly is on the XWiki-side and the objects of OIDC Connection Clients in XWiki OIDC Configuration. Is it enough to configure an object of type XWiki.OIDC.Provider.ClientClass or do I need to provide additional configuration?
note: I got the setup work in the other direction so that I can use the OpenProject macro in XWiki to render relevant project information on a page.