xwikisas / application-googleapps

Google Apps Integration
0 stars 4 forks source link

Google Apps Pro, weird redirect behavior #61

Closed chris968 closed 1 year ago

chris968 commented 2 years ago

We using the plugin for years now and we have strange redirection behavior since the beginning. First it result in a error after a successful login so people had to reload the root page of the wiki, then we activated encoded slash in Tomcat and then we was now redirected to a page that don't exist.

Here is the redirection which is applied right after a successful login:

https://xwiki.ourcompany.com/xwiki/bin/view/GoogleApps/Login??srid=XXXXXXXX&xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F%3Fsrid%XXXXXXXX

polx commented 2 years ago

Which versions are used? (of XWiki and of the application) And... can you explain what it means to "activate the encoded slash": Did you change the code somewhere?

chris968 commented 2 years ago

We use XWiki 13.1 and the Google Apps Integration 2.4.10

We activated the support of encoded slash in Tomcat through systemd:

Environment='CATALINA_OPTS=-Xms512M -Xmx2048M -server -XX:+UseParallelGC -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true'

polx commented 2 years ago

Hello, just for us to sort the issues. Could you contact support@xwki.com in case you have licensed app? thanks

AndreeaChi commented 1 year ago

Hi! @chris968 , does this redirect behavior still happen with the latest Google Apps Integration Pro 2.5.2 version?

chris968 commented 1 year ago

Hi @AndreeaChi , sorry to no have reported that I solved the issue on our side in a first place, I had to proxy pass the /xwikipath instead of /on our front-end reverse proxy, everything working since.