Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-4931

Confluence is not using the seraph logout url to define how to log out.

      We need to update our use of seraph to delegate the definition of the logout url to seraph-config.xml

      Workaround for Confluence 5.7.2 and older

      1. Find and copy <confluence_install>/confluence/WEB-INF/lib/confluence-x.x.x.jar to a temp location (with "x.x.x" representing your Confluence version number)
      2. Extract the file: jar -xf confluence-x.x.x.jar
      3. Open xwork.xml in an editor and locate this section:
        <action name="logout" class="com.atlassian.confluence.user.actions.LogoutAction">
                    <interceptor-ref name="defaultStack"/>
                    <result name="error" type="velocity">/logout.vm</result>
                    <result name="success" type="redirect">/login.action?logout=true</result>
                </action>
        
      4. Replace the redirect URL for success result to the desired URL, e.g.:
                    <result name="success" type="redirect">/my_custom_url.html</result>
        
      5. Save the file, and copy it to <confluence_install>/confluence/WEB-INF/classes/
      6. Restart Confluence

            [CONFSERVER-4931] Confluence is not using the seraph logout url to define how to log out.

            I made a work around solution for this. It does not require extracting the jar file. What you need to do it to create a jsp file in confluence root. pass the url redirect page in the query string, in the file redirect to the query string page.

            Mustafa Abusalah added a comment - I made a work around solution for this. It does not require extracting the jar file. What you need to do it to create a jsp file in confluence root. pass the url redirect page in the query string, in the file redirect to the query string page.

            Tim added a comment -

            Yes! Finally! Please Tung Dang, make it happen.

            Tim added a comment - Yes! Finally! Please Tung Dang, make it happen.

            Any news??

            Mustafa Abusalah added a comment - Any news??

            Tim added a comment -

            Any news on where this developer is hiding?

            Tim added a comment - Any news on where this developer is hiding?

            Thumbs up!

            Cedric Weber added a comment - Thumbs up!

            Jon Moser added a comment -

            Sounds good. Thanks for the update!

            Jon Moser added a comment - Sounds good. Thanks for the update!

            Hi Jon

            Thanks for getting in touch. This issue is currently on our backlog and is awaiting a developer to address it. Hopefully we will have a resolution for this in the coming weeks.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi Jon Thanks for getting in touch. This issue is currently on our backlog and is awaiting a developer to address it. Hopefully we will have a resolution for this in the coming weeks. Regards Steve Haffenden Confluence Bugmaster Atlassian

            Jon Moser added a comment -

            Hello,

            Are there any updates on this? It appears to still be an issue at least in 5.1.5.

            Thanks!

            Jon Moser added a comment - Hello, Are there any updates on this? It appears to still be an issue at least in 5.1.5. Thanks!

            I've also tried the xwork.xml workaround. It doesn't work for me. Though Confluence is running well - the logout finishes with error:

            Cause
            java.lang.IllegalStateException
                at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)
            Stack Trace:[hide]
            java.lang.IllegalStateException
            	at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)
            	at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:108)
            ...
            

            Dmitri Abrosov [Teamlead] added a comment - I've also tried the xwork.xml workaround. It doesn't work for me. Though Confluence is running well - the logout finishes with error: Cause java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) Stack Trace:[hide] java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:108) ...

            Anatoli added a comment -

            Hi Kurt,

            Can you please contact support and we will help you to apply the workaround.

            Anatoli added a comment - Hi Kurt, Can you please contact support and we will help you to apply the workaround.

              tthanhdang Tung Dang
              8873c89cc788 Daniel Ostermeier
              Affected customers:
              50 This affects my team
              Watchers:
              32 Start watching this issue

                Created:
                Updated:
                Resolved: